+// excess errors test - XFAIL
+// covariant return types in are currently not support for complex inheritance
#include <stdio.h>
class A {
void A::malloc(unsigned int) {}
-int foo() {
+void foo() {
A a;
a.malloc(3); // <-- line 10
}
{
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) {
enum T {
V1,
-};
+}; // ERROR -
struct X {
T t : 31;
}
// Prototypes (enable one or the other)
-double max<>(double, double);
+double max<>(double, double); // ERROR - bogus code
// int max(int, int);
int main()