]> granicus.if.org Git - clang/commitdiff
Fix this test so that it's valid; the point is to test for the crash,
authorEli Friedman <eli.friedman@gmail.com>
Wed, 21 May 2008 05:37:55 +0000 (05:37 +0000)
committerEli Friedman <eli.friedman@gmail.com>
Wed, 21 May 2008 05:37:55 +0000 (05:37 +0000)
not the missing diagnostic.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@51365 91177308-0d34-0410-b5e6-96231b3b80d8

test/Sema/vla.c

index fcb533adbcd7cc39c3e5959a19d51d2c294e0392..e8956fd78a1170fa7b0191c451878dbcef50f343 100644 (file)
@@ -8,7 +8,7 @@ int test1() {
 // PR2347
 void f (unsigned int m)
 {
-  extern int e[2][m];
+  int e[2][m];
 
   e[0][0] = 0;
 }