summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/lto/20090302_0.C
blob: 76de7baf0fa6231e0b9c700341a1bddb5ef5894d (plain)
1
2
3
4
5
6
7
8
9
/* { dg-lto-do link } */
/* { dg-lto-options {{-fPIC -flto -flto-partition=1to1 -r -nostdlib}} } */
struct Foo {
  bool Mumble();
  static void Bar() { if (foo_->Mumble()) foo_ = 0; }
  static void Baz() { Bar(); }
  static Foo *foo_;
};
void Unused() { Foo::Bar(); Foo::Baz(); }