Merge from mainline (gomp-merge-2005-02-26).
[official-gcc.git] / gcc / testsuite / g++.dg / lookup / struct1.C
blobf4b83ecf6b8b568287cf077ee70db88cff9e6baa
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 "using typedef-name" }
8 typedef struct { int i; } C;    // { dg-error "previous declaration" }
9 struct C;                       // { dg-error "using typedef-name" }
11 struct D;
12 typedef struct D D;
13 typedef struct D { int i; } D;
14 typedef struct D D;