Debian Codegraph @

gcc/testsuite/g++.dg/ext/deprecate-1.C

raw
1 // be pickier about anon-union and structs
2 // { dg-options "-fpermissive" }
3
4 struct X
5 {
6 struct
7 {
8 int f1 (); // { dg-warning "public non-static data" }
9 // { dg-message "will be removed" "" { target *-*-* } .-1 }
10 typedef int t1; // { dg-warning "public non-static data" }
11 private:
12 int m1; // { dg-warning "public non-static data" }
13 };
14
15 union
16 {
17 int f2 (); // { dg-warning "public non-static data" }
18 typedef int t2; // { dg-warning "public non-static data" }
19 protected:
20 int m2; // { dg-warning "public non-static data" }
21 };
22 };