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/assembly/asm/global_asm.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/assembly/asm/global_asm.rs')
| -rw-r--r-- | tests/assembly/asm/global_asm.rs | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/tests/assembly/asm/global_asm.rs b/tests/assembly/asm/global_asm.rs index 8f824563e8a..22cf4bdb15b 100644 --- a/tests/assembly/asm/global_asm.rs +++ b/tests/assembly/asm/global_asm.rs @@ -25,9 +25,9 @@ global_asm!("movl ${}, %ecx", const 5, options(att_syntax)); global_asm!("call {}", sym my_func); // CHECK: lea rax, [rip + MY_STATIC] global_asm!("lea rax, [rip + {}]", sym MY_STATIC); -// CHECK: call _RNvCsddMtV7nAi4C_10global_asm6foobar +// CHECK: call _RNvC[[CRATE_IDENT:[a-zA-Z0-9]{12}]]_10global_asm6foobar global_asm!("call {}", sym foobar); -// CHECK: _RNvCsddMtV7nAi4C_10global_asm6foobar: +// CHECK: _RNvC[[CRATE_IDENT]]_10global_asm6foobar: fn foobar() { loop {} } | 
