Require target lra in gcc.dg/pr108095.c
[official-gcc.git] / gcc / testsuite / objc.dg / naming-2.m
blob3dd59f9948d639a94589bed2a437a6ffafa8c03d
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; /* { 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 } */