C99 testsuite readiness: Compile more tests with -std=gnu89
[official-gcc.git] / gcc / testsuite / g++.dg / pr86988.C
blob62fb0f3220daa5e69a32fd021e312b90fb341731
1 // { dg-do compile }
2 // { dg-options "-O2 -Warray-bounds" }
4 struct R { int r; };
5 void baz (char *, char *, char *, char *);
7 void
8 foo ()
10   const R a = { 12 };
11   char b[1][a.r] = { { "12345678901" } };
12   char c[a.r] = { "12345678901" };
13   char d[1][a.r] = { { '1', '2', '3', '4', '5', '6', '7', '8', '9', '0', '1', '\0' } };
14   char e[a.r] = { '1', '2', '3', '4', '5', '6', '7', '8', '9', '0', '1', '\0' };
15   baz (b[0], c, d[0], e);