Commit 41c3f1e1 by Robert Lipe

Additional changes from Martin von Loewis.

From-SVN: r20153
parent 655ccec1
// excess errors test - XFAIL
// covariant return types in are currently not support for complex inheritance
#include <stdio.h> #include <stdio.h>
class A { class A {
......
...@@ -6,7 +6,7 @@ public: ...@@ -6,7 +6,7 @@ public:
void A::malloc(unsigned int) {} void A::malloc(unsigned int) {}
int foo() { void foo() {
A a; A a;
a.malloc(3); // <-- line 10 a.malloc(3); // <-- line 10
} }
...@@ -9,8 +9,8 @@ int main() ...@@ -9,8 +9,8 @@ int main()
{ {
try { try {
f(0, 0); f(0, 0);
return 0;
} catch (foo x) {
return 1; return 1;
} catch (foo x) {
return 0;
} }
} }
//Build don't link:
// from include/g++/stl_relops.h // from include/g++/stl_relops.h
template <class T> template <class T>
inline bool operator!=(const T& x, const T& y) { inline bool operator!=(const T& x, const T& y) {
...@@ -6,7 +7,7 @@ inline bool operator!=(const T& x, const T& y) { ...@@ -6,7 +7,7 @@ inline bool operator!=(const T& x, const T& y) {
enum T { enum T {
V1, V1,
}; }; // ERROR -
struct X { struct X {
T t : 31; T t : 31;
......
...@@ -8,7 +8,7 @@ T max(T a, T b) ...@@ -8,7 +8,7 @@ T max(T a, T b)
} }
// Prototypes (enable one or the other) // Prototypes (enable one or the other)
double max<>(double, double); double max<>(double, double); // ERROR - bogus code
// int max(int, int); // int max(int, int);
int main() int main()
......
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