blob: cfcaa88485c0d446d9455955369649e825ff1b3d [file] [log] [blame]
// PR c++/89871
// { dg-do compile { target c++11 } }
// { dg-options "-Wall" }
struct A {};
struct B {};
struct S {
union {
A a;
B b;
};
};
int main() {
S s;
s = S{.a = A{}};
}