Fixups after merge
[official-gcc.git] / gcc / testsuite / objc.dg / naming-2.m
blob6d087509ea2e8eaeb31eb37b26d9919c3abc2de9
1 /* Test for collision of @interfaces with global vars.  */
2 /* Author: Ziemowit Laski <zlaski@apple.com>.  */
3 /* { dg-do compile } */
5 @interface Foo
6 @end
7 float Foo;  /* { dg-error "parse error|syntax error|expected|redeclaration" } */
9 double Bar;
10 @interface Bar
11 @end  /* { dg-error "redeclared as different kind of symbol" } */
12 /* { dg-error "previous declaration of" "" { target *-*-* } 9 } */