blob: 0ff6347daa2ff12414879f983992f9e2e1d996bf [file] [log] [blame]
// { dg-do run }
// { dg-options "-Wno-nested-anon-types" }
// Test that we can have an unnamed struct inside an anonymous union.
struct A
{
union
{
struct { int i; } foo;
};
};
static union
{
struct { int i; } foo;
};
int main ()
{
union
{
struct { int i; } bar;
};
return 0;
}