diff options
author | Jason Merrill <jason@gcc.gnu.org> | 1999-02-27 19:22:44 -0500 |
---|---|---|
committer | Jason Merrill <jason@gcc.gnu.org> | 1999-02-27 19:22:44 -0500 |
commit | 4cfa922359462e34aa800ada14deee91021f0a64 (patch) | |
tree | 3f92002d8a39e8055e04be5ef022a63209855161 /gcc | |
parent | 2faa455b71459caee44032c52a60fc444eb729be (diff) | |
download | gcc-4cfa922359462e34aa800ada14deee91021f0a64.tar.gz |
update
From-SVN: r25491
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.bugs/900121_01.C | 2 | ||||
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.bugs/900214_01.C | 2 | ||||
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.bugs/900428_01.C | 42 | ||||
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.bugs/900519_13.C | 6 | ||||
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.martin/ambig1.C | 4 | ||||
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.mike/p7868.C | 4 | ||||
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.other/null3.C | 6 | ||||
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.pt/crash5.C | 2 | ||||
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.pt/typename8.C | 2 |
9 files changed, 38 insertions, 32 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.bugs/900121_01.C b/gcc/testsuite/g++.old-deja/g++.bugs/900121_01.C index 99ab8f6cbcf..ea07968c3a3 100644 --- a/gcc/testsuite/g++.old-deja/g++.bugs/900121_01.C +++ b/gcc/testsuite/g++.old-deja/g++.bugs/900121_01.C @@ -6,7 +6,7 @@ // keywords: abort, incomplete types, reference types, formal parameters -struct s0; +struct s0; // ERROR - forward declaration void function (struct s0 &arg1, struct s0 &arg2) { diff --git a/gcc/testsuite/g++.old-deja/g++.bugs/900214_01.C b/gcc/testsuite/g++.old-deja/g++.bugs/900214_01.C index 3aac764f86e..09fd184f0ab 100644 --- a/gcc/testsuite/g++.old-deja/g++.bugs/900214_01.C +++ b/gcc/testsuite/g++.old-deja/g++.bugs/900214_01.C @@ -7,7 +7,7 @@ // keywords: friends, incomplete types, function members -struct A; +struct A; // ERROR - forward declaration struct B { friend void A::foo(); // ERROR - type A is incomplete diff --git a/gcc/testsuite/g++.old-deja/g++.bugs/900428_01.C b/gcc/testsuite/g++.old-deja/g++.bugs/900428_01.C index b46fc466529..c2eb3071352 100644 --- a/gcc/testsuite/g++.old-deja/g++.bugs/900428_01.C +++ b/gcc/testsuite/g++.old-deja/g++.bugs/900428_01.C @@ -17,35 +17,35 @@ int i; void *pv; volatile void *pvv; -struct s; -extern struct s es, *ps; -extern volatile struct s evs, *pvs; +struct s; // ERROR - forward declaration +extern struct s es, *ps; // ERROR - defined here +extern volatile struct s evs, *pvs; // ERROR - defined here void pv_test () { - *pv; // ERROR - , XFAIL *-*-* - (i ? *pv : *pv); // ERROR - , XFAIL *-*-* - *pv, *pv; // ERROR - , XFAIL *-*-* + *pv; // ERROR - invalid void + (i ? *pv : *pv); // ERROR - invalid void + *pv, *pv; // ERROR - invalid void - *pvv; // ERROR - , XFAIL *-*-* - (i ? *pvv : *pvv); // ERROR - , XFAIL *-*-* - *pvv, *pvv; // ERROR - , XFAIL *-*-* + *pvv; // ERROR - invalid void + (i ? *pvv : *pvv); // ERROR - invalid void + *pvv, *pvv; // ERROR - invalid void - es; // ERROR - , XFAIL *-*-* - (i ? es : es); // ERROR - , XFAIL *-*-* - es, es; // ERROR - , XFAIL *-*-* + es; // ERROR - incomplete + (i ? es : es); // ERROR - undefined type + es, es; // ERROR - incomplete - evs; // ERROR - , XFAIL *-*-* - (i ? evs : evs); // ERROR - , XFAIL *-*-* - evs, evs; // ERROR - , XFAIL *-*-* + evs; // ERROR - incomplete + (i ? evs : evs); // ERROR - undefined type + evs, evs; // ERROR - incomplete - *ps; // ERROR - , XFAIL *-*-* - (i ? *ps : *ps); // ERROR - , XFAIL *-*-* - *ps, *ps; // ERROR - , XFAIL *-*-* + *ps; // ERROR - undefined type + (i ? *ps : *ps); // ERROR - undefined type + *ps, *ps; // ERROR - undefined type - *pvs; // ERROR - , XFAIL *-*-* - (i ? *pvs : *pvs); // ERROR - , XFAIL *-*-* - *pvs, *pvs; // ERROR - , XFAIL *-*-* + *pvs; // ERROR - undefined type + (i ? *pvs : *pvs); // ERROR - undefined type + *pvs, *pvs; // ERROR - undefined type } int main () { return 0; } diff --git a/gcc/testsuite/g++.old-deja/g++.bugs/900519_13.C b/gcc/testsuite/g++.old-deja/g++.bugs/900519_13.C index 8161b59b801..b4bebda6588 100644 --- a/gcc/testsuite/g++.old-deja/g++.bugs/900519_13.C +++ b/gcc/testsuite/g++.old-deja/g++.bugs/900519_13.C @@ -11,15 +11,15 @@ // keywords: inheritance, ambiguity resolution, members struct base_0 { - enum { base_member }; + enum { base_member }; // ERROR - candidate (26, 30) }; struct base_1 { - int base_member; + int base_member; // ERROR - candidate (26, 34) }; struct base_2 { - int base_member (); + int base_member (); // ERROR - candidate (30, 34) }; struct derived_0 : public base_0, public base_1 { diff --git a/gcc/testsuite/g++.old-deja/g++.martin/ambig1.C b/gcc/testsuite/g++.old-deja/g++.martin/ambig1.C index 3ee730ddc26..9886991e29b 100644 --- a/gcc/testsuite/g++.old-deja/g++.martin/ambig1.C +++ b/gcc/testsuite/g++.old-deja/g++.martin/ambig1.C @@ -2,12 +2,12 @@ //Based on a report by Bill Currie <bcurrie@tssc.co.nz> struct foo { protected: - int x; + int x; // ERROR - candidate }; struct bar { public: - int x(); + int x(); // ERROR - candidate }; struct foobar: public foo, public bar { diff --git a/gcc/testsuite/g++.old-deja/g++.mike/p7868.C b/gcc/testsuite/g++.old-deja/g++.mike/p7868.C index d8ce95d3c66..d79e2aa3de2 100644 --- a/gcc/testsuite/g++.old-deja/g++.mike/p7868.C +++ b/gcc/testsuite/g++.old-deja/g++.mike/p7868.C @@ -4,13 +4,13 @@ struct DIAGTYP { }; struct DIAGTYP1 { - struct DIAGTYP; + struct DIAGTYP; // ERROR - forward declaration void bar() { new struct DIAGTYP; } // ERROR - undefined void foo() { new struct DIAGTYP1; } }; int main () { - struct DIAGTYP; + struct DIAGTYP; // ERROR - forward declaration struct DIAGTYP *lerror_desc; lerror_desc= new struct DIAGTYP; // ERROR - undefined } diff --git a/gcc/testsuite/g++.old-deja/g++.other/null3.C b/gcc/testsuite/g++.old-deja/g++.other/null3.C new file mode 100644 index 00000000000..aef456e974a --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.other/null3.C @@ -0,0 +1,6 @@ +// Build don't link: + +void x() +{ + int* p = 1==0; +} diff --git a/gcc/testsuite/g++.old-deja/g++.pt/crash5.C b/gcc/testsuite/g++.old-deja/g++.pt/crash5.C index 786cdf2c902..5797eee23e6 100644 --- a/gcc/testsuite/g++.old-deja/g++.pt/crash5.C +++ b/gcc/testsuite/g++.old-deja/g++.pt/crash5.C @@ -3,7 +3,7 @@ template <class T, int i> struct K { void f(); -}; +}; // ERROR - forward declaration template <class T> void diff --git a/gcc/testsuite/g++.old-deja/g++.pt/typename8.C b/gcc/testsuite/g++.old-deja/g++.pt/typename8.C index d2eb4cede91..86881f51127 100644 --- a/gcc/testsuite/g++.old-deja/g++.pt/typename8.C +++ b/gcc/testsuite/g++.old-deja/g++.pt/typename8.C @@ -16,7 +16,7 @@ public: } }; -class B : public A< B > +class B : public A< B > // ERROR - forward declaration { public: typedef int myT; |