blob: 9b01bf3fada61860cf58a8f6d3b580f90e5ef468 [file] [log] [blame]
// PR c++/101767
// { dg-do compile { target c++11 } }
// { dg-additional-options "-Wno-pedantic" }
typedef struct {
struct {
int x;
};
union {
int y;
float z;
};
} S;
void foo(void)
{
[[maybe_unused]] S a = {
.x = 1,
.y = 0
};
}