Debian Codegraph @

gcc/testsuite/g++.dg/other/anon-union3.C

raw
1 // PR c++/32054
2
3 class C
4 {
5 auto union // { dg-error "storage class" "" { target { ! c++11 } } }
6 { // { dg-error "auto|multiple types" "" { target c++11 } .-1 }
7 int a;
8 };
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 };
25 };