PR c++/53848
[official-gcc.git] / gcc / testsuite / g++.dg / other / anon-union3.C
blobe65ee948a3b8ac00500c9531a091c9e3c2d20cfe
1 // PR c++/32054
3 class C
5   auto union      // { dg-error "storage class" "" { target c++98 } }
6     {
7       int a;
8     };            // { dg-error "multiple|specified" "" { target c++11 } }
9   register union  // { dg-error "storage class" }
10     {
11       int b;
12     };
13   static union    // { dg-error "storage class" }
14     {
15       int c;
16     };
17   extern union    // { dg-error "storage class" }
18     {
19       int d;
20     };
21   mutable union   // { dg-error "storage class" }
22     {
23       int e;
24     };