repo.or.cz
/
clang
/
acc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Add include needed for MSVC.
[clang/acc.git]
/
test
/
CodeGen
/
variable-array.c
blob
f5621c289d7a5dda14253dc77bf9df20cef9f85b
1
// RUN: clang-cc -emit-llvm < %s | grep puts | count 4
2
3
// PR3248
4
int
a
(
int
x
)
5
{
6
int
(*
y
)[
x
];
7
return sizeof
(*(
puts
(
"asdf"
),
y
));
8
}
9
10
// PR3247
11
int
b
() {
12
return sizeof
(*(
char
(*)[
puts
(
"asdf"
)])
0
);
13
}
14
15
// PR3247
16
int
c
() {
17
static int
(*
y
)[
puts
(
"asdf"
)];
18
return sizeof
(*
y
);
19
}