[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git] / clang / test / CodeGen / pr5406.c
blob81f02e96c776e2bb19c5423e3f78ecab891ac541
1 // REQUIRES: arm-registered-target
2 // RUN: %clang_cc1 %s -emit-llvm -triple arm-apple-darwin -o - | FileCheck %s
3 // PR 5406
5 typedef struct { char x[3]; } A0;
6 void foo (int i, ...);
9 // CHECK: call void (i32, ...) @foo(i32 noundef 1, [1 x i32] {{.*}})
10 int main (void)
12 A0 a3;
13 a3.x[0] = 0;
14 a3.x[0] = 0;
15 a3.x[2] = 26;
16 foo (1, a3 );
17 return 0;