X-Git-Url: https://oss.titaniummirror.com/gitweb?a=blobdiff_plain;f=gcc%2Ftestsuite%2Fgcc.dg%2Farray-2.c;fp=gcc%2Ftestsuite%2Fgcc.dg%2Farray-2.c;h=0000000000000000000000000000000000000000;hb=6fed43773c9b0ce596dca5686f37ac3fc0fa11c0;hp=06c753f63216be70f8d5e2204b84bc164d9b2a22;hpb=27b11d56b743098deb193d510b337ba22dc52e5c;p=msp430-gcc.git diff --git a/gcc/testsuite/gcc.dg/array-2.c b/gcc/testsuite/gcc.dg/array-2.c deleted file mode 100644 index 06c753f6..00000000 --- a/gcc/testsuite/gcc.dg/array-2.c +++ /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" } */