Skip to content

Commit 9c9fa56

Browse files
committed
codegen tests: adapt patterns to also work with v0 symbol mangling
No functional changes intended. These tests were failing under `new-symbol-mangling = true`. This adapts the patterns to work in this case.
1 parent eb9e5e7 commit 9c9fa56

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/test/codegen/unwind-abis/c-unwind-abi-panic-abort.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@
99
// CHECK: @rust_item_that_can_unwind() unnamed_addr [[ATTR0:#[0-9]+]]
1010
#[no_mangle]
1111
pub unsafe extern "C-unwind" fn rust_item_that_can_unwind() {
12-
// CHECK: call void @_ZN4core9panicking15panic_no_unwind
12+
// Handle both legacy and v0 symbol mangling.
13+
// CHECK: call void @{{.*core9panicking15panic_no_unwind}}
1314
may_unwind();
1415
}
1516

src/test/codegen/unwind-and-panic-abort.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ extern "C-unwind" {
99

1010
// CHECK: Function Attrs:{{.*}}nounwind
1111
// CHECK-NEXT: define{{.*}}void @foo
12-
// CHECK: call void @_ZN4core9panicking15panic_no_unwind
12+
// Handle both legacy and v0 symbol mangling.
13+
// CHECK: call void @{{.*core9panicking15panic_no_unwind}}
1314
#[no_mangle]
1415
pub unsafe extern "C" fn foo() {
1516
bar();

0 commit comments

Comments
 (0)