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