blob: 62fb0f3220daa5e69a32fd021e312b90fb341731 [file] [log] [blame]
// { dg-do compile }
// { dg-options "-O2 -Warray-bounds" }
struct R { int r; };
void baz (char *, char *, char *, char *);
void
foo ()
{
const R a = { 12 };
char b[1][a.r] = { { "12345678901" } };
char c[a.r] = { "12345678901" };
char d[1][a.r] = { { '1', '2', '3', '4', '5', '6', '7', '8', '9', '0', '1', '\0' } };
char e[a.r] = { '1', '2', '3', '4', '5', '6', '7', '8', '9', '0', '1', '\0' };
baz (b[0], c, d[0], e);
}