summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.other/static20.C
blob: 17741049dbdd81c1cf754d5fb38e7183ebe61759 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// { dg-do link  }
struct foo
{
  foo() {}
  ~foo() {}
  void func() { static foo x; }
};

int main()
{
   foo f;
   return 0;
}