1 // g++ 1.36.1 bug 900107_01
3 // Unlike GCC and Cfront 2.0, the g++ 1.36.1 compiler gives struct, union,
4 // and class declarations which are nested within blocks file scope.
6 // Cfront 2.0 passes this test.
8 // keywords: block scope, file scope, nested types, tagged types
10 class c1 { int c1_member1; };
11 struct s1 { int s1_member1; };
12 union u1 { int u1_member1; };
18 class c1 { // gets bogus error
22 struct s1 { // gets bogus error
26 union u1 { // gets bogus error
30 enum e1 { // OK using g++ or GCC, but mishandled by Cfront 2.0.
37 int main () { return 0; }