blob: e8956fd78a1170fa7b0191c451878dbcef50f343 [file] [log] [blame]
Chris Lattnerb3ff0822007-12-18 07:15:40 +00001// RUN: clang %s -verify -fsyntax-only
2
3int test1() {
4 typedef int x[test1()]; // vla
5 static int y = sizeof(x); // expected-error {{not constant}}
6}
7
Eli Friedman19bf5c62008-05-21 05:06:46 +00008// PR2347
9void f (unsigned int m)
10{
Eli Friedman45cd28f2008-05-21 05:37:55 +000011 int e[2][m];
Eli Friedman19bf5c62008-05-21 05:06:46 +000012
13 e[0][0] = 0;
14}
15