1 // Various struct lookup tests.  We didn't used to complain about
2 // the definition of C.
3 
4 struct A;
5 typedef struct A B;		// { dg-message "previous declaration" }
6 struct B;			// { dg-error "using typedef-name" }
7 
8 typedef struct { int i; } C;	// { dg-message "previous declaration" }
9 struct C;			// { dg-error "using typedef-name" }
10 
11 struct D;
12 typedef struct D D;
13 typedef struct D { int i; } D;
14 typedef struct D D;
15