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>
class A {
......
......@@ -6,7 +6,7 @@ public:
void A::malloc(unsigned int) {}
int foo() {
void foo() {
A a;
a.malloc(3); // <-- line 10
}
......@@ -9,8 +9,8 @@ int main()
{
try {
f(0, 0);
return 0;
} catch (foo x) {
return 1;
} catch (foo x) {
return 0;
}
}
//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;
......
......@@ -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()
......
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