blob: b9d098bb64445917408a47238b92ed48976b6a3e [file] [log] [blame]
/* PR middle-end/101172 */
/* { dg-do compile } */
/* { dg-options "-O2" } */
union U
{
int a[3];
struct
{
int a : 3;
struct this_struct var; /* { dg-error "field 'var' has incomplete type" } */
} b;
};
const union U hello = {.a = {1, 2, 3}};
void foo()
{
int x = hello.b.a;
}