FSF GCC merge 02/23/03
[official-gcc.git] / gcc / testsuite / g++.dg / lookup / struct1.C
blobc8bc0561be0564fa5d01a19f8a256b82b530bf0c
1 // Various struct lookup tests.  We didn't used to complain about
2 // the definition of C.
4 struct A;
5 typedef struct A B;             // { dg-error "previous declaration" }
6 struct B;                       // { dg-error "conflicting types" }
8 typedef struct { int i; } C;    // { dg-error "previous declaration" }
9 struct C;                       // { dg-error "conflicting types" }
11 struct D;
12 typedef struct D D;
13 typedef struct D { int i; } D;
14 typedef struct D D;