X-Git-Url: https://oss.titaniummirror.com/gitweb?a=blobdiff_plain;f=gcc%2Ftestsuite%2Fgcc.dg%2Farray-4.c;fp=gcc%2Ftestsuite%2Fgcc.dg%2Farray-4.c;h=0000000000000000000000000000000000000000;hb=6fed43773c9b0ce596dca5686f37ac3fc0fa11c0;hp=b3e4f6c50dedc8ac4432fe1d9d8ec9c9a8310861;hpb=27b11d56b743098deb193d510b337ba22dc52e5c;p=msp430-gcc.git diff --git a/gcc/testsuite/gcc.dg/array-4.c b/gcc/testsuite/gcc.dg/array-4.c deleted file mode 100644 index b3e4f6c5..00000000 --- a/gcc/testsuite/gcc.dg/array-4.c +++ /dev/null @@ -1,25 +0,0 @@ -/* { dg-do run } */ -/* { dg-options "" } */ - -/* Verify that GCC's initialized flexible array member extension - works properly. */ - -extern void abort(void); -extern void exit(int); - -struct f { int w; int x[]; }; -struct g { int w; int x[0]; }; - -static struct f f = { 4, { 0, 1, 2, 3 } }; -static int junk1[] = { -1, -1, -1, -1 }; -static struct g g = { 4, { 0, 1, 2, 3 } }; /* { dg-warning "(excess elements)|(near initialization)" "" } */ -static int junk2[] = { -1, -1, -1, -1 }; - -int main() -{ - int i; - for (i = 0; i < f.w; ++i) - if (f.x[i] != i) - abort (); - exit(0); -}