diff options
| author | Jubilee Young <workingjubilee@gmail.com> | 2024-06-04 01:22:46 -0700 |
|---|---|---|
| committer | Jubilee Young <workingjubilee@gmail.com> | 2024-06-04 01:30:51 -0700 |
| commit | fb6fbf02a65ad1fc766aeee7c7698907d56f8e12 (patch) | |
| tree | 9cf12c4bf9af1fd5fa1dc223ecc2b33b8a6bd1ae /tests/codegen/virtual-function-elimination.rs | |
| parent | 27529d5c2526eab5aa03d765426c44ea55c5d269 (diff) | |
| download | rust-fb6fbf02a65ad1fc766aeee7c7698907d56f8e12.tar.gz rust-fb6fbf02a65ad1fc766aeee7c7698907d56f8e12.zip | |
Use FileCheck to parameterize codegen tests over hashes
When things like our internal hashing or representations change, it is inappropriate for these tests to suddenly fail for no reason. The chance of error is reduced if we instead pattern-match.
Diffstat (limited to 'tests/codegen/virtual-function-elimination.rs')
| -rw-r--r-- | tests/codegen/virtual-function-elimination.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/codegen/virtual-function-elimination.rs b/tests/codegen/virtual-function-elimination.rs index 6c391d9114b..23d7657baa9 100644 --- a/tests/codegen/virtual-function-elimination.rs +++ b/tests/codegen/virtual-function-elimination.rs @@ -81,7 +81,7 @@ fn taking_u(u: &dyn U) -> i32 { } pub fn taking_v(v: &dyn V) -> i32 { - // CHECK: @llvm.type.checked.load({{.*}}, i32 24, metadata !"NtCs64ITQYi9761_28virtual_function_elimination1V") + // CHECK: @llvm.type.checked.load({{.*}}, i32 24, metadata !"NtC[[CRATE_IDENT:[a-zA-Z0-9]{12}]]_28virtual_function_elimination1V") v.public_function() } @@ -96,5 +96,5 @@ pub fn main() { // CHECK: ![[TYPE0]] = !{i64 0, !"[[MANGLED_TYPE0]]"} // CHECK: ![[VCALL_VIS0]] = !{i64 2} // CHECK: ![[TYPE1]] = !{i64 0, !"[[MANGLED_TYPE1]]"} -// CHECK: ![[TYPE2]] = !{i64 0, !"NtCs64ITQYi9761_28virtual_function_elimination1V"} +// CHECK: ![[TYPE2]] = !{i64 0, !"NtC[[CRATE_IDENT]]_28virtual_function_elimination1V"} // CHECK: ![[VCALL_VIS2]] = !{i64 1} |
