libcpp, c, middle-end: Optimize initializers using #embed in C
[official-gcc.git] / gcc / testsuite / gcc.dg / Wmissing-field-initializers-2.c
blobcb42968a4905278dcb1c198d8a0fcc6096caf3f3
1 /* PR c/84685 */
2 /* { dg-do compile } */
3 /* { dg-options "-Wmissing-field-initializers" } */
5 struct T {
6 int a;
7 int *b;
8 int c;
9 };
11 struct T t = { .b = (int[]){1} }; /* { dg-bogus "missing initializer" } */