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
/
variable-array.c
blob
c2a7c2ffb93f47642d3058e0f66d66f82ac3b45a
1
// RUN: %clang_cc1 -emit-llvm < %s | grep puts | count 4
2
3
int
puts
(
const char
*);
4
5
// PR3248
6
int
a
(
int
x
)
7
{
8
int
(*
y
)[
x
];
9
return sizeof
(*(
puts
(
"asdf"
),
y
));
10
}
11
12
// PR3247
13
int
b
(
void
) {
14
return sizeof
(*(
char
(*)[
puts
(
"asdf"
)])
0
);
15
}
16
17
// PR3247
18
int
c
(
void
) {
19
static int
(*
y
)[
puts
(
"asdf"
)];
20
return sizeof
(*
y
);
21
}