OSDN Git Service

2013-02-04 Richard Biener <rguenther@suse.de>
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.dg / lto / 20081008_0.C
1 // { dg-lto-do assemble }
2 // { dg-lto-options {{-flto}} }
3
4 struct Foo
5 {
6  virtual void func() = 0;
7 };
8
9 struct Bar
10 {
11  Foo *field;
12  void func2();
13 };
14
15 struct Baz
16 {
17  Bar &bar();
18  Baz();
19 };
20
21 struct Zonk
22 {
23  virtual ~Zonk() {
24  }
25  virtual void func3() = 0;
26 };
27
28 void Mumble(Zonk *) {
29 }
30
31 extern "C"
32 {
33  void __attribute__ ((nothrow)) __cxa_pure_virtual() {
34    Baz().bar().func2();
35  }
36 }