Chris Lattner | b3ff082 | 2007-12-18 07:15:40 +0000 | [diff] [blame] | 1 | // RUN: clang %s -verify -fsyntax-only |
2 | |||||
3 | int test1() { | ||||
4 | typedef int x[test1()]; // vla | ||||
5 | static int y = sizeof(x); // expected-error {{not constant}} | ||||
6 | } | ||||
7 | |||||
Eli Friedman | 19bf5c6 | 2008-05-21 05:06:46 +0000 | [diff] [blame] | 8 | // PR2347 |
9 | void f (unsigned int m) | ||||
10 | { | ||||
11 | extern int e[2][m]; | ||||
12 | |||||
13 | e[0][0] = 0; | ||||
14 | } | ||||
15 |