Merge from mainline (167278:168000).
[official-gcc/graphite-test-results.git] / gcc / testsuite / g++.dg / ext / anon-struct5.C
blob8b697ccbca7964903f2bff3fb3dead5ca1820077
1 // PR c++/30302
3 struct A
5   struct { static int i; }; // { dg-error "prohibits anonymous structs|an anonymous struct" }
6   void foo() { i; }
7 };
9 struct B
11   union { static int i; }; // { dg-error "an anonymous union|member of a union" }
12   void foo() { i; }