2018-05-15 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / gcc.dg / two-types-8.c
blob666b9a9c62a297c385e377225cc26bc984d18cd9
1 /* { dg-do compile } */
2 /* { dg-options "-std=gnu89" } // suppress default -pedantic-errors */
4 enum x { XYZ }
5 struct g { enum x a; }; /* { dg-error "expected ';', identifier or " } */
7 int f(struct g *x)
9 return x->a == XYZ; /* { dg-bogus " has no member " } */