]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Additional changes from Martin von Loewis.
authorRobert Lipe <robertl@gcc.gnu.org>
Sun, 31 May 1998 20:47:01 +0000 (20:47 +0000)
committerRobert Lipe <robertl@gcc.gnu.org>
Sun, 31 May 1998 20:47:01 +0000 (20:47 +0000)
From-SVN: r20153

gcc/testsuite/g++.old-deja/g++.robertl/eb17.C
gcc/testsuite/g++.old-deja/g++.robertl/eb32.C
gcc/testsuite/g++.old-deja/g++.robertl/eb50.C
gcc/testsuite/g++.old-deja/g++.robertl/eb76.C
gcc/testsuite/g++.old-deja/g++.robertl/eb79.C

index 86b542492b7fbf7e9395fbad16768f198ca8ffe6..f32dadba9a53468a503e704da85974656438ea4d 100644 (file)
@@ -1,3 +1,5 @@
+// excess errors test - XFAIL
+// covariant return types in are currently not support for complex inheritance
 #include <stdio.h>
 
 class A {
index b5bc839d2b2678cbce17e842436ab0678f0a0f46..95e161782983b6b8d0fe4c7bf2044f594b06116b 100644 (file)
@@ -6,7 +6,7 @@ public:
 
 void A::malloc(unsigned int) {}
 
-int foo() {
+void foo() {
     A a;
     a.malloc(3);    // <-- line 10
 }
index c6eb4aa3216802e69dcc7f6f805e9d428468b181..c7f90766af210015e622698526982461a59a3970 100644 (file)
@@ -9,8 +9,8 @@ int main()
 {
         try {
                 f(0, 0);
-                return 0;
-        } catch (foo x) {
                 return 1;
+        } catch (foo x) {
+                return 0;
         }
 }
index c32b10411eac62387819d639c3b00d3b20e98ac9..0d352dd416dbb5188fee0966262c02e448568150 100644 (file)
@@ -1,3 +1,4 @@
+//Build don't link:
 // from include/g++/stl_relops.h
 template <class T>
 inline bool operator!=(const T& x, const T& y) {
@@ -6,7 +7,7 @@ inline bool operator!=(const T& x, const T& y) {
 
 enum T {
   V1,
-};
+};                           // ERROR -
 
 struct X {
   T      t : 31;
index 599d0421c5b45c324b49d6dda5b7367b477de262..5691532b99f2067be965e246534a3cb7fead9a6f 100644 (file)
@@ -8,7 +8,7 @@ T max(T a, T b)
 }
 
 // Prototypes (enable one or the other)
-double max<>(double, double);
+double max<>(double, double);      // ERROR - bogus code
 // int max(int, int);
 
 int main()