Skip to content

Commit 93dd90a

Browse files
committed
adapt codegen test to also work with v0 symbol mangling
No functional changes intended. This test was failing under `new-symbol-mangling = true`. Adapted similarly to rust-lang#106002.
1 parent 4535d33 commit 93dd90a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tests/codegen/debuginfo-inline-callsite-location.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,10 @@
44
// can correctly merge the debug info if it merges the inlined code (e.g., for merging of tail
55
// calls to panic.
66

7-
// CHECK: tail call void @_ZN4core9panicking5panic17h{{([0-9a-z]{16})}}E
7+
// Handle both legacy and v0 symbol mangling.
8+
// CHECK: tail call void @{{.*core9panicking5panic}}
89
// CHECK-SAME: !dbg ![[#first_dbg:]]
9-
// CHECK: tail call void @_ZN4core9panicking5panic17h{{([0-9a-z]{16})}}E
10+
// CHECK: tail call void @{{.*core9panicking5panic}}
1011
// CHECK-SAME: !dbg ![[#second_dbg:]]
1112

1213
// CHECK: ![[#func_dbg:]] = distinct !DISubprogram(name: "unwrap<i32>"

0 commit comments

Comments
 (0)