]> git.lizzy.rs Git - rust.git/blob - src/test/codegen/debug-column-msvc.rs
Rollup merge of #99479 - Enselic:import-can-be-without-id, r=camelid
[rust.git] / src / test / codegen / debug-column-msvc.rs
1 // Verify that no column information is emitted for MSVC targets
2 //
3 // only-msvc
4 // compile-flags: -C debuginfo=2
5
6 // CHECK-NOT: !DILexicalBlock({{.*}}column: {{.*}})
7 // CHECK-NOT: !DILocation({{.*}}column: {{.*}})
8
9 pub fn add(a: u32, b: u32) -> u32 {
10     a + b
11 }
12
13 fn main() {
14     let c = add(1, 2);
15     println!("{}", c);
16 }