PR c++/65046
[official-gcc.git] / gcc / testsuite / objc.dg / two-types-1.m
blobda902a3e367a753b6b1e9f9b0181eafb1dae101d
1 /* { dg-do compile } */
2 /* { dg-options "-std=gnu89" } // suppress default -pedantic-errors */
4 @interface foo
5 struct f {}
6 struct g { int a; }; /* { dg-error "expected ';', identifier or " "" } */
8 - (struct f *) a;
9 - (struct g *) b;
10 @end
12 int f(struct g *x)
14   return x->a; /* { dg-bogus " has no member " "" } */