Fix test-suite fallout of default -Wreturn-type.
[official-gcc.git] / gcc / testsuite / g++.dg / lto / 20081217-2_0.C
blob3bc6ba997a5773812f80a5d749b699e828c6c7cf
1 struct A {
2   virtual int foo() { return 0; }
3 };
4 struct B {
5   virtual int f() {return 1; }
6 };
7 struct C : public A, public B  {
8   C();
9   virtual int f() { return 0; }
12 C::C()
16 int
17 main()
19   C c;
20   return c.f();