aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/ext/anon-struct8.C
blob: f4e3f11b6789c01192e3020b5360bcf7547e35e5 (plain)
1
2
3
4
5
6
7
8
9
// { dg-options "" }

struct A { };
struct B {
  struct: A { int i; };		// { dg-error "anonymous struct with base" }
};
union U {
  struct: A { int i; };		// { dg-error "anonymous struct with base" }
};