]> git.proxmox.com Git - rustc.git/blob - tests/codegen/debug-column-msvc.rs
New upstream version 1.68.2+dfsg1
[rustc.git] / tests / 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 }