2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.dg / lookup / struct1.C
blobdd8d54b85d8fb3a1278ec87b5a91e8af842dc78b
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 declaration" }
8 typedef struct { int i; } C;    // { dg-error "previous declaration" }
9 struct C;                       // { dg-error "conflicting declaration" }
11 struct D;
12 typedef struct D D;
13 typedef struct D { int i; } D;
14 typedef struct D D;