2 // g++ 1.36.1 bug 900107_01
4 // Unlike GCC and Cfront 2.0, the g++ 1.36.1 compiler gives struct, union,
5 // and class declarations which are nested within blocks file scope.
7 // Cfront 2.0 passes this test.
9 // keywords: block scope, file scope, nested types, tagged types
11 class c1 { int c1_member1; };
12 struct s1 { int s1_member1; };
13 union u1 { int u1_member1; };
19 class c1 { // { dg-bogus "" }
23 struct s1 { // { dg-bogus "" }
27 union u1 { // { dg-bogus "" }
31 enum e1 { // OK using g++ or GCC, but mishandled by Cfront 2.0.
38 int main () { return 0; }