Skip to content

Commit dd4562a

Browse files
committed
tests: update new test to accept new lifetime format
Same change as 258915a, just for a newly written test.
1 parent a171994 commit dd4562a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/codegen-llvm/c-variadic-lifetime.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
#[unsafe(no_mangle)]
1010
unsafe extern "C" fn variadic(a: f64, mut args: ...) -> f64 {
11-
// CHECK: call void @llvm.lifetime.start.p0(i64 {{[0-9]+}}, ptr nonnull %args)
11+
// CHECK: call void @llvm.lifetime.start.p0({{(i64 [0-9]+, )?}}ptr nonnull %args)
1212
// CHECK: call void @llvm.va_start.p0(ptr nonnull %args)
1313

1414
let b = args.arg::<f64>();
@@ -17,5 +17,5 @@ unsafe extern "C" fn variadic(a: f64, mut args: ...) -> f64 {
1717
a + b + c
1818

1919
// CHECK: call void @llvm.va_end.p0(ptr nonnull %args)
20-
// CHECK: call void @llvm.lifetime.end.p0(i64 {{[0-9]+}}, ptr nonnull %args)
20+
// CHECK: call void @llvm.lifetime.end.p0({{(i64 [0-9]+, )?}}ptr nonnull %args)
2121
}

0 commit comments

Comments
 (0)