Skip analyzer strndup test on hppa*-*-hpux*
[official-gcc.git] / gcc / testsuite / gcc.dg / pr101172.c
blobb9d098bb64445917408a47238b92ed48976b6a3e
1 /* PR middle-end/101172 */
2 /* { dg-do compile } */
3 /* { dg-options "-O2" } */
5 union U
7 int a[3];
8 struct
10 int a : 3;
11 struct this_struct var; /* { dg-error "field 'var' has incomplete type" } */
12 } b;
15 const union U hello = {.a = {1, 2, 3}};
17 void foo()
19 int x = hello.b.a;