[cfe-commits] r51365 - /cfe/trunk/test/Sema/vla.c

Eli Friedman eli.friedman at gmail.com
Tue May 20 22:37:55 PDT 2008


Author: efriedma
Date: Wed May 21 00:37:55 2008
New Revision: 51365

URL: http://llvm.org/viewvc/llvm-project?rev=51365&view=rev
Log:
Fix this test so that it's valid; the point is to test for the crash, 
not the missing diagnostic.


Modified:
    cfe/trunk/test/Sema/vla.c

Modified: cfe/trunk/test/Sema/vla.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/vla.c?rev=51365&r1=51364&r2=51365&view=diff

==============================================================================
--- cfe/trunk/test/Sema/vla.c (original)
+++ cfe/trunk/test/Sema/vla.c Wed May 21 00:37:55 2008
@@ -8,7 +8,7 @@
 // PR2347
 void f (unsigned int m)
 {
-  extern int e[2][m];
+  int e[2][m];
 
   e[0][0] = 0;
 }





More information about the cfe-commits mailing list