summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/lto/20081217-2_0.C
blob: a47b0b5781b4fb2b5675bf4c3ad9e4aced02ae3c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
struct A {
  virtual int foo() {}
};
struct B {
  virtual int f() {return 1; }
};
struct C : public A, public B  {
  C();
  virtual int f() { return 0; }
};

C::C()
{
}

main()
{
  C c;
  return c.f();
}