From 93dd90ac9ab68bb200771e836345317ee57b9b89 Mon Sep 17 00:00:00 2001 From: Krasimir Georgiev Date: Fri, 25 Aug 2023 10:49:22 +0000 Subject: [PATCH] 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 https://github.com/rust-lang/rust/pull/106002. --- tests/codegen/debuginfo-inline-callsite-location.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/codegen/debuginfo-inline-callsite-location.rs b/tests/codegen/debuginfo-inline-callsite-location.rs index e2ea9dda4a097..c2ff776f353b9 100644 --- a/tests/codegen/debuginfo-inline-callsite-location.rs +++ b/tests/codegen/debuginfo-inline-callsite-location.rs @@ -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"