about summary refs log tree commit diff
path: root/tests/codegen/inherit_overflow.rs
diff options
context:
space:
mode:
authorAugie Fackler <augie@google.com>2023-03-15 14:22:26 -0400
committerAugie Fackler <augie@google.com>2023-03-15 14:22:26 -0400
commit0b9b7dd5c6771ab26dd7cab4cf96f8f5c2059b1a (patch)
treee1fb1773d2bf120b5f6c947613272df51acbd21b /tests/codegen/inherit_overflow.rs
parente4b9f86054c581d931f8bad0c87523c53e1e8e3f (diff)
downloadrust-0b9b7dd5c6771ab26dd7cab4cf96f8f5c2059b1a.tar.gz
rust-0b9b7dd5c6771ab26dd7cab4cf96f8f5c2059b1a.zip
inherit_overflow: adapt pattern to also work with v0 mangling
This test was failing under new-symbol-mangling = true. Adapt pattern to
work in both cases.

Related to #106002 from December.
Diffstat (limited to 'tests/codegen/inherit_overflow.rs')
-rw-r--r--tests/codegen/inherit_overflow.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/codegen/inherit_overflow.rs b/tests/codegen/inherit_overflow.rs
index 0b0b890b2c9..39909d7abfd 100644
--- a/tests/codegen/inherit_overflow.rs
+++ b/tests/codegen/inherit_overflow.rs
@@ -4,7 +4,7 @@
 //[NOASSERT] compile-flags: -Coverflow-checks=off
 
 // CHECK-LABEL: define{{.*}} @assertion
-// ASSERT: call void @_ZN4core9panicking5panic17h
+// ASSERT: call void @{{.*4core9panicking5panic}}
 // NOASSERT: ret i8 0
 #[no_mangle]
 pub fn assertion() -> u8 {