OSDN Git Service

2010-07-29 Tobias Burnus <burnus@net-b.de>
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / objc.dg / class-1.m
1 /* Redeclarations of class names.  */
2 /* { dg-do compile } */
3
4 typedef int foo;
5
6 @class foo;  /* { dg-error "redeclared as different kind of symbol" } */
7 /* { dg-error "previous declaration of" "" { target *-*-* } 4 } */
8
9 typedef int bar;
10
11 @interface bar
12 @end  /* { dg-error "redeclared as different kind of symbol" } */
13 /* { dg-error "previous declaration of" "" { target *-*-* } 9 } */
14
15 int glob;
16
17 @implementation glob
18 @end  /* { dg-error "redeclared as different kind of symbol" } */
19 /* { dg-error "previous declaration of" "" { target *-*-* } 15 } */
20 /* { dg-warning "annot find interface declaration" "" { target *-*-* } 18 } */