Skip to content

Commit 8e93a01

Browse files
committed
Test that column information is not emitted for MSVC targets
1 parent 0c51f2f commit 8e93a01

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

src/test/codegen/debug-column-msvc.rs

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
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+
}

0 commit comments

Comments
 (0)