Commit 90352f72 by Brendan Kehoe

fix placement of the errors

From-SVN: r24412
parent a1e27b76
...@@ -8,14 +8,14 @@ ...@@ -8,14 +8,14 @@
// cfront 2.0 passes this test. // cfront 2.0 passes this test.
enum enum0 { enum0_value_0 }; enum enum0 { enum0_value_0 };
struct struct0 { struct struct0 {
int enum0; 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; } int main () { return 0; }
...@@ -9,8 +9,8 @@ ...@@ -9,8 +9,8 @@
class class0; class class0;
struct struct1 { struct struct1 {
int class0; int class0;
void member_function (class0 *); // ERROR - void member_function (class0 *); // ERROR - invalid use of struct-local member
}; };
void class1::member_function (class0 *p) { // ERROR - void class1::member_function (class0 *p) { // ERROR -
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment