gcc/testsuite/g++.dg/lto/20090302_0.C
raw| 1 | /* { dg-lto-do link } */ |
| 2 | /* { dg-require-effective-target fpic } */ |
| 3 | /* { dg-lto-options {{-fPIC -flto -flto-partition=1to1 -r}} } */ |
| 4 | /* { dg-extra-ld-options "-flinker-output=nolto-rel" } */ |
| 5 | struct Foo { |
| 6 | bool Mumble(); |
| 7 | static void Bar() { if (foo_->Mumble()) foo_ = 0; } |
| 8 | static void Baz() { Bar(); } |
| 9 | static Foo *foo_; |
| 10 | }; |
| 11 | void Unused() { Foo::Bar(); Foo::Baz(); } |