Deprecate some C++ extensions
[official-gcc.git] / gcc / testsuite / g++.dg / ext / deprecate-1.C
bloba23b71ba6ca09ff481bdcf505c046427fb5e9bfa
1 // be pickier about anon-union and structs
2 // { dg-options "-fpermissive" }
4 struct X
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   };
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   };