1 // This test checks that temporaries for indirectly-passed arguments get lifetime markers.
3 // compile-flags: -O -C no-prepopulate-passes -Zmir-opt-level=0
11 const A: [u8; 1024] = [0; 1024];
13 // CHECK-LABEL: @const_arg_indirect
15 pub unsafe fn const_arg_indirect() {
16 // Ensure that the live ranges for the two argument temporaries don't overlap.
18 // CHECK: call void @llvm.lifetime.start
19 // CHECK: call void @f
20 // CHECK: call void @llvm.lifetime.end
21 // CHECK: call void @llvm.lifetime.start
22 // CHECK: call void @f
23 // CHECK: call void @llvm.lifetime.end