diff options
author | Brendan Kehoe <brendan@gcc.gnu.org> | 1998-12-23 12:02:02 -0500 |
---|---|---|
committer | Brendan Kehoe <brendan@gcc.gnu.org> | 1998-12-23 12:02:02 -0500 |
commit | 90352f7294662f2e094785d52816d6118ad349a0 (patch) | |
tree | b03b77f2e0b78fb673138a0c29f2f872213d2be7 | |
parent | a1e27b76d4c60eee5121c7a7f8779a4254e1a845 (diff) | |
download | gcc-90352f7294662f2e094785d52816d6118ad349a0.zip gcc-90352f7294662f2e094785d52816d6118ad349a0.tar.gz gcc-90352f7294662f2e094785d52816d6118ad349a0.tar.bz2 |
fix placement of the errors
From-SVN: r24412
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.bugs/900511_02.C | 6 | ||||
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.bugs/900511_03.C | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.bugs/900511_02.C b/gcc/testsuite/g++.old-deja/g++.bugs/900511_02.C index dcd3568..cef71c0 100644 --- a/gcc/testsuite/g++.old-deja/g++.bugs/900511_02.C +++ b/gcc/testsuite/g++.old-deja/g++.bugs/900511_02.C @@ -8,14 +8,14 @@ // 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; } diff --git a/gcc/testsuite/g++.old-deja/g++.bugs/900511_03.C b/gcc/testsuite/g++.old-deja/g++.bugs/900511_03.C index d3cf47c..849bdf3 100644 --- a/gcc/testsuite/g++.old-deja/g++.bugs/900511_03.C +++ b/gcc/testsuite/g++.old-deja/g++.bugs/900511_03.C @@ -9,8 +9,8 @@ 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 - |