OSDN Git Service

* g++.dg/lto/20091002-1_0.C: Use "dg-require-effective-target fpic".
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.dg / lto / 20090302_0.C
1 /* { dg-lto-do link } */
2 /* { dg-require-effective-target fpic } */
3 /* { dg-lto-options {{-fPIC -flto -flto-partition=1to1 -r -nostdlib}} } */
4 struct Foo {
5   bool Mumble();
6   static void Bar() { if (foo_->Mumble()) foo_ = 0; }
7   static void Baz() { Bar(); }
8   static Foo *foo_;
9 };
10 void Unused() { Foo::Bar(); Foo::Baz(); }