blob: 6f2946b36981aadd1b09268ab9febacfb90e9d32 [file] [log] [blame]
// PR c++/32054
class C
{
auto union // { dg-error "storage class" "" { target { ! c++11 } } }
{ // { dg-error "auto|multiple types" "" { target c++11 } .-1 }
int a;
};
register union // { dg-error "storage class" }
{
int b;
};
static union // { dg-error "storage class" }
{
int c;
};
extern union // { dg-error "storage class" }
{
int d;
};
mutable union // { dg-error "storage class" }
{
int e;
};
};