// cfront 2.0 passes this test.
-enum enum0 { enum0_value_0 };
+enum enum0 { enum0_value_0 };
struct struct0 {
int enum0;
- void member_function (enum0 e); // ERROR -
+ void member_function (enum0 e); // ERROR - invalid use of struct-local member
};
-void class0::member_function (enum0 e) { // ERROR -
+void class0::member_function (enum0 e) { // ERROR - syntax error
}
int main () { return 0; }
class class0;
struct struct1 {
- int class0;
- void member_function (class0 *); // ERROR -
+ int class0;
+ void member_function (class0 *); // ERROR - invalid use of struct-local member
};
void class1::member_function (class0 *p) { // ERROR -