summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/lto/20090302_1.C
blob: 0ccaf3c82054cf298f51bd96f777ab51a0ba0618 (plain)
1
2
3
4
5
6
7
struct Foo {
  bool Mumble();
  static void Bar() { if (foo_->Mumble()) foo_ = 0; }
  static void Baz() { Bar(); }
  static Foo *foo_;
};
Foo *Foo::foo_;