diff options
Diffstat (limited to 'gcc/testsuite/gcc.dg/array-4.c')
| -rw-r--r-- | gcc/testsuite/gcc.dg/array-4.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/gcc/testsuite/gcc.dg/array-4.c b/gcc/testsuite/gcc.dg/array-4.c index 52ad921..b3e4f6c 100644 --- a/gcc/testsuite/gcc.dg/array-4.c +++ b/gcc/testsuite/gcc.dg/array-4.c @@ -12,7 +12,7 @@ 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 "(deprecated initialization)|(near initialization)" "" } */ +static struct g g = { 4, { 0, 1, 2, 3 } }; /* { dg-warning "(excess elements)|(near initialization)" "" } */ static int junk2[] = { -1, -1, -1, -1 }; int main() @@ -21,8 +21,5 @@ int main() for (i = 0; i < f.w; ++i) if (f.x[i] != i) abort (); - for (i = 0; i < g.w; ++i) - if (g.x[i] != i) - abort (); exit(0); } |
