blob: 682d2fb2667fdff96b08d21a577bf916a53d7bf8 [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;
}
// PR3048
int x = sizeof(struct{char qq[x];}); // expected-error {{fields must have a constant size}}