repo.or.cz
/
llvm-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git]
/
clang
/
test
/
CodeGen
/
pr5406.c
blob
81f02e96c776e2bb19c5423e3f78ecab891ac541
1
// REQUIRES: arm-registered-target
2
// RUN: %clang_cc1 %s -emit-llvm -triple arm-apple-darwin -o - | FileCheck %s
3
// PR 5406
4
5
typedef
struct
{
char
x
[
3
]; }
A0
;
6
void
foo
(
int
i
, ...);
7
8
9
// CHECK: call void (i32, ...) @foo(i32 noundef 1, [1 x i32] {{.*}})
10
int
main
(
void
)
11
{
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
;
18
}