gcc/testsuite/objc.dg/naming-2.m
raw| 1 | /* Test for collision of @interfaces with global vars. */ |
| 2 | /* Author: Ziemowit Laski <[email protected]>. */ |
| 3 | /* { dg-do compile } */ |
| 4 | |
| 5 | @interface Foo |
| 6 | @end |
| 7 | float Foo; /* { dg-error "parse error|syntax error|expected|redeclaration" } */ |
| 8 | |
| 9 | double Bar; /* { dg-line Bar_decl } */ |
| 10 | @interface Bar |
| 11 | @end /* { dg-error "redeclared as different kind of symbol" } */ |
| 12 | /* { dg-error "previous declaration of" "" { target *-*-* } Bar_decl } */ |