2018-07-20 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / g++.dg / lto / 20081008_0.C
blob258265a4fe13769177ee0270980668a557d241cc
1 // { dg-lto-do assemble }
2 // { dg-lto-options {{-flto}} }
4 struct Foo
6  virtual void func() = 0;
7 };
9 struct Bar
11  Foo *field;
12  void func2();
15 struct Baz
17  Bar &bar();
18  Baz();
21 struct Zonk
23  virtual ~Zonk() {
24  }
25  virtual void func3() = 0;
28 void Mumble(Zonk *) {
31 extern "C"
33  void __attribute__ ((nothrow)) __cxa_pure_virtual() {
34    Baz().bar().func2();
35  }