]> git.lizzy.rs Git - rust.git/blob - tests/assembly/dwarf5.rs
Rollup merge of #107740 - oli-obk:lock_tcx, r=petrochenkov
[rust.git] / tests / assembly / dwarf5.rs
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
5
6 #![feature(no_core, lang_items)]
7 #![crate_type = "rlib"]
8 #![no_core]
9
10 #[lang = "sized"]
11 trait Sized {}
12 #[lang = "copy"]
13 trait Copy {}
14
15 pub fn wibble() {}
16
17 // CHECK: .section .debug_info
18 // CHECK-NOT: .short 2
19 // CHECK-NOT: .short 4
20 // CHECK: .short 5