A(void) {}
private:
A(const A &) { abort(); } // ERROR -
- const A& operator =(const A &) { abort(); }
+ const A& operator =(const A &) { abort(); } // WARNING - no return stmt XFAIL *-*-*
};
class B : public A {
class dictionary
{
public:
- void *lookup(symbol s, void *v=0) { win = 1; }
- void *lookup(const char *) {}
+ void lookup(symbol s, void *v=0) { win = 1; }
+ void lookup(const char *) {}
};
int main()
int bar ()
{
throw 100;
+ return 0;
}
int main ()
// Test that unwinding properly restores SP.
// Contributed by Jason Merrill <jason@cygnus.com>
-int f (int i)
+void f (int i)
{
throw i;
}
struct A
{
- int f(int a) { }
+ int f(int a) { return 0; }
void f(int a, int b) { }
};
}
IncludeIt& operator=(const IncludeIt& i) {
myStrvec = i.myStrvec;
+ return *this;
}
private:
CopyMe myStrvec;
// Build don't link:
struct A {
- virtual int f () = 0;
+ virtual void f () = 0;
};
-struct B: public A { int f () { } };
+struct B: public A { void f () { } };
int main()
{