Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
fp2-dev
/
platform
/
external
/
clang
/
1261938ec42b0a1b82bec5fe901b7fc02a23d9a1
/
.
/
test
/
CodeGen
/
vla.c
blob: 907de916fa0be8cd83a9d380f688b1559a670156 [
file
] [
log
] [
blame
]
// RUN: clang %s -emit-llvm -o %t
int
b
(
char
*
x
);
// Extremely basic VLA test
void
a
(
int
x
)
{
char
arry
[
x
];
arry
[
0
]
=
10
;
b
(
arry
);
}
int
c
(
int
n
)
{
return
sizeof
(
int
[
n
]);
}