diff options
| author | Matthias Krüger <476013+matthiaskrgr@users.noreply.github.com> | 2025-09-15 06:03:47 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-09-15 06:03:47 +0200 |
| commit | b82698b50388d35b7c6a0bc0a532444792f14477 (patch) | |
| tree | 215320e65057af6080c51400f43c160f32205369 /tests/codegen-llvm | |
| parent | 9070e95dda1a5ca675ae82a70d2f3061d21bb235 (diff) | |
| parent | dd4562a18f4a91e40ba701019af33ab80c1b2886 (diff) | |
| download | rust-b82698b50388d35b7c6a0bc0a532444792f14477.tar.gz rust-b82698b50388d35b7c6a0bc0a532444792f14477.zip | |
Rollup merge of #146480 - durin42:llvm-22-more-lifetime, r=Mark-Simulacrum
tests: update new test to accept new lifetime format Same change as rust-lang/rust@258915a55539593423c3d4c30f7b741f65c56e51, just for a newly written test.
Diffstat (limited to 'tests/codegen-llvm')
| -rw-r--r-- | tests/codegen-llvm/c-variadic-lifetime.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/codegen-llvm/c-variadic-lifetime.rs b/tests/codegen-llvm/c-variadic-lifetime.rs index 5b2f8af18c8..c6d3602ef51 100644 --- a/tests/codegen-llvm/c-variadic-lifetime.rs +++ b/tests/codegen-llvm/c-variadic-lifetime.rs @@ -8,7 +8,7 @@ #[unsafe(no_mangle)] unsafe extern "C" fn variadic(a: f64, mut args: ...) -> f64 { - // CHECK: call void @llvm.lifetime.start.p0(i64 {{[0-9]+}}, ptr nonnull %args) + // CHECK: call void @llvm.lifetime.start.p0({{(i64 [0-9]+, )?}}ptr nonnull %args) // CHECK: call void @llvm.va_start.p0(ptr nonnull %args) let b = args.arg::<f64>(); @@ -17,5 +17,5 @@ unsafe extern "C" fn variadic(a: f64, mut args: ...) -> f64 { a + b + c // CHECK: call void @llvm.va_end.p0(ptr nonnull %args) - // CHECK: call void @llvm.lifetime.end.p0(i64 {{[0-9]+}}, ptr nonnull %args) + // CHECK: call void @llvm.lifetime.end.p0({{(i64 [0-9]+, )?}}ptr nonnull %args) } |
