[C++ PATCH] Deprecate -ffriend-injection
[official-gcc.git] / gcc / testsuite / gcc.dg / pr54363.c
blobaea0f9057b0847663303794385d79e477b78a35c
1 /* PR c/54363 */
2 /* { dg-do compile } */
3 /* { dg-options "-std=gnu99" } */
5 struct S { char **a; };
7 void
8 test (void)
10 struct S b = { .a = (char **) { "a", "b" } }; /* { dg-warning "(initialization|excess elements)" } */
11 struct S c = { .a = (char *[]) { "a", "b" } };