]> oss.titaniummirror.com Git - msp430-gcc.git/blobdiff - gcc/testsuite/gcc.dg/array-2.c
Imported gcc-4.4.3
[msp430-gcc.git] / gcc / testsuite / gcc.dg / array-2.c
diff --git a/gcc/testsuite/gcc.dg/array-2.c b/gcc/testsuite/gcc.dg/array-2.c
deleted file mode 100644 (file)
index 06c753f..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
-/* { dg-do compile } */
-/* { dg-options "" } */
-
-/* Verify that we can't do things to get ourselves in trouble
-   with GCC's initialized flexible array member extension.  */
-
-struct f { int w; int x[]; };
-struct g { struct f f; };
-struct g g1 = { { 0, { } } };
-struct g g2 = { { 0, { 1 } } }; /* { dg-error "(nested context)|(near initialization)" "nested" } */
-
-struct h { int x[0]; int y; };
-struct h h1 = { { 0 }, 1 }; /* { dg-error "(excess elements)|(near initialization)" "before end" } */