diff options
| author | Matthew Maurer <mmaurer@google.com> | 2025-02-14 18:55:50 +0000 |
|---|---|---|
| committer | Matthew Maurer <mmaurer@google.com> | 2025-02-14 18:55:50 +0000 |
| commit | db4c09c4d4d125826ea835f4296e4f9bad3d39e6 (patch) | |
| tree | aeda600eebe8e81e768c72c686032aedab751da7 /tests/codegen/common_prim_int_ptr.rs | |
| parent | c241e146506600f5ab7f4026ff015df8a658400e (diff) | |
| download | rust-db4c09c4d4d125826ea835f4296e4f9bad3d39e6.tar.gz rust-db4c09c4d4d125826ea835f4296e4f9bad3d39e6.zip | |
llvm: Tolerate captures in tests
llvm/llvm-project@7e3735d1a1b85cea48feb45cb7c2b5d8eaa216ae introduces `captures` annotations. Adjust regexes to be tolerant of these.
Diffstat (limited to 'tests/codegen/common_prim_int_ptr.rs')
| -rw-r--r-- | tests/codegen/common_prim_int_ptr.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/codegen/common_prim_int_ptr.rs b/tests/codegen/common_prim_int_ptr.rs index 8eb05024174..a1d7a125f32 100644 --- a/tests/codegen/common_prim_int_ptr.rs +++ b/tests/codegen/common_prim_int_ptr.rs @@ -40,7 +40,7 @@ pub unsafe fn extract_int(x: Result<usize, Box<()>>) -> usize { } // CHECK-LABEL: @extract_box -// CHECK-SAME: (i{{[0-9]+}} {{[^%]+}} [[DISCRIMINANT:%[0-9]+]], ptr {{[^,]+}} [[PAYLOAD:%[0-9]+]]) +// CHECK-SAME: (i{{[0-9]+}} {{[^%]+}} [[DISCRIMINANT:%[0-9]+]], ptr {{[^%]+}} [[PAYLOAD:%[0-9]+]]) #[no_mangle] pub unsafe fn extract_box(x: Result<usize, Box<i32>>) -> Box<i32> { // CHECK: ret ptr [[PAYLOAD]] |
