Skip to content

Commit

Permalink
adapt codegen test to also work with v0 symbol mangling
Browse files Browse the repository at this point in the history
No functional changes intended.

This test was failing under `new-symbol-mangling = true`.
Adapted similarly to rust-lang#106002.
  • Loading branch information
krasimirgg committed Aug 25, 2023
1 parent 4535d33 commit 93dd90a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/codegen/debuginfo-inline-callsite-location.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@
// can correctly merge the debug info if it merges the inlined code (e.g., for merging of tail
// calls to panic.

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

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

0 comments on commit 93dd90a

Please sign in to comment.