1 /* Redeclarations of class names. */
2 /* { dg-do compile } */
4 typedef int foo; /* { dg-line foo_def } */
6 @class foo; /* { dg-error "redeclared as different kind of symbol" } */
7 /* { dg-error "previous declaration of" "" { target *-*-* } foo_def } */
9 typedef int bar; /* { dg-line bar_def } */
12 @end /* { dg-error "redeclared as different kind of symbol" } */
13 /* { dg-error "previous declaration of" "" { target *-*-* } bar_def } */
15 int glob; /* { dg-line glob_def } */
18 @end /* { dg-line glob_impl_end } */
19 /* { dg-error "redeclared as different kind of symbol" "" { target *-*-* } glob_impl_end } */
20 /* { dg-error "previous declaration of" "" { target *-*-* } glob_def } */
21 /* { dg-warning "annot find interface declaration" "" { target *-*-* } glob_impl_end } */