Clean up some minor white space issues in trans-decl.c and trans-expr.c
[official-gcc.git] / gcc / testsuite / g++.dg / ext / anon-struct6.C
blob66d4b32719621c37067b7c85e0f8ed0268e238be
1 // PR c++/33460
3 struct A
5   struct
6   {  // { dg-error "anonymous struct cannot have function members" }
7     struct { static int i; }; // { dg-error "prohibits anonymous structs|non-static data members|unnamed class" }
8     void foo() { i; }
9   }; // { dg-error "prohibits anonymous structs" }