summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/lto/20090315_0.C
blob: 1cae572eeb87fe74bbd867c7497e66c2aea476c5 (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_;
int main() { return 0; }