summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/lto/20090313_1.C
blob: 088792b2dd323f0dc327e9da25da55dadc50f182 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
struct Foo {
  virtual void X();
  virtual void Y();
};
struct Bar: public Foo {
  Bar(Foo *);
  void Y();
};
void Baz() {
  Foo f;
  Bar b(&f);
}