2018-11-07 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / g++.dg / lto / 20090302_0.C
blob23e012704f4fbc326cc20be33a79cd7207207ef5
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_;
11 void Unused() { Foo::Bar(); Foo::Baz(); }