Fix ICE in substring-handling building 502.gcc_r (PR 87562)
[official-gcc.git] / gcc / testsuite / gcc.dg / pr35440.c
blob796d7e0a9ae8e8eb753f15ad436ce26e4ec7e8bb
1 /* PR c/35440 */
2 /* { dg-do compile } */
3 /* { dg-options "-std=gnu99" } */
5 struct A {};
6 struct B { int i; char j[2]; };
8 void foo (void)
10 (struct A){}(); /* { dg-error "called object" } */
11 (struct B){ .i = 2, .j[1] = 1 }(); /* { dg-error "called object" } */