OSDN Git Service

gcc/
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gcc.dg / two-types-8.c
1 /* { dg-do compile } */
2 /* { dg-options "-std=gnu89" } // suppress default -pedantic-errors */
3
4 enum x { XYZ }
5 struct g { enum x a; }; /* { dg-error "expected ';', identifier or " "" } */
6
7 int f(struct g *x)
8 {
9   return x->a == XYZ; /* { dg-bogus " has no member " "" } */
10 }