Deprecate some C++ extensions
[official-gcc.git] / gcc / testsuite / g++.dg / ext / anon-struct6.C
blob360f25027a310b0572af71d536f811286703f221
1 // PR c++/33460
3 struct A
5   struct
6   {
7     struct { static int i; }; // { dg-error "prohibits anonymous structs|non-static data members|unnamed class" }
8     void foo() { i; } // { dg-error "public non-static data" }
9   }; // { dg-error "prohibits anonymous structs" }