Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
fp2-dev
/
platform
/
external
/
clang
/
6855492ab6d55a6dd70691efa166aa0b2ee0f56e
/
.
/
test
/
Sema
/
vla.c
blob: 5f4857e3101686b9ee0a496dd3d8da2ccd16b4df [
file
] [
log
] [
blame
]
// RUN: clang %s -verify -fsyntax-only
int
test1
()
{
typedef
int
x
[
test1
()];
// vla
static
int
y
=
sizeof
(
x
);
// expected-error {{not a compile-time constant}}
}
// PR2347
void
f
(
unsigned
int
m
)
{
int
e
[
2
][
m
];
e
[
0
][
0
]
=
0
;
}