]> oss.titaniummirror.com Git - msp430-gcc.git/blobdiff - gcc/testsuite/gcc.dg/vla-init-1.c
Imported gcc-4.4.3
[msp430-gcc.git] / gcc / testsuite / gcc.dg / vla-init-1.c
diff --git a/gcc/testsuite/gcc.dg/vla-init-1.c b/gcc/testsuite/gcc.dg/vla-init-1.c
deleted file mode 100644 (file)
index 61d2357..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
-/* Test for tree-checking error when initializing a variable-length array
-   (not allowed): constructor_max_index needs to be an INTEGER_CST.  */
-/* Origin: Joseph Myers <jsm28@cam.ac.uk>.  */
-/* { dg-do compile } */
-/* { dg-options "" } */
-
-int a;
-
-void
-foo (void)
-{
-  int x[a] = { 1 }; /* { dg-error "init" "VLA init" } */
-}