blob: cf9916dc36734f1e48f712f6565997c2e425e556 [file] [log] [blame]
// PR c++/48537
// { dg-do compile { target c++11 } }
struct SFoo
{
SFoo() =delete; // { dg-message "declared" }
};
union UFoo // { dg-error "deleted" }
{
SFoo foo;
};
int main()
{
UFoo(); // { dg-error "deleted" }
}