summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/lto/20090315_0.C
blob: 930fb16e5cfcc77102e4279ae3fc565b648f9e90 (plain)
1
2
3
4
5
6
7
8
9
// { dg-lto-do run }
struct Foo {
  bool Mumble() { return true; }
  static void Bar() { if (foo_->Mumble()) foo_ = 0; }
  static void Baz() { Bar(); }
  static Foo *foo_;
};
Foo *Foo::foo_;
main() { return 0; }