1 // Makes sure that `-Z dwarf-version=5` causes `rustc` to emit DWARF version 5.
2 // assembly-output: emit-asm
3 // compile-flags: -g --target x86_64-unknown-linux-gnu -Z dwarf-version=5
4 // needs-llvm-components: x86
6 #![feature(no_core, lang_items)]
7 #![crate_type = "rlib"]
17 // CHECK: .section .debug_info
18 // CHECK-NOT: .short 2
19 // CHECK-NOT: .short 4