1 // Negative test for C++0x unrestricted unions
2 // { dg-options -std=c++0x }
3 // { dg-prune-output "implicitly deleted because" }
14 A a; // { dg-error "union member" }
17 B b; // { dg-error "B::B\\(\\)" }
18 B b2(b); // { dg-error "B::B\\(const B&\\)" }
24 A a; // { dg-error "union member" }
28 C c; // { dg-error "C::C\\(\\)" }
29 C c2(c); // { dg-error "C::C\\(const C&\\)" }
31 // { dg-error "B::~B" "" { target *-*-* } 17 }
32 // { dg-error "B::~B" "" { target *-*-* } 18 }
33 // { dg-error "C::~C" "" { target *-*-* } 28 }
34 // { dg-error "C::~C" "" { target *-*-* } 29 }