(root)/
gcc-13.2.0/
gcc/
testsuite/
g++.dg/
ext/
anon-struct10.C
// 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
  };
}