Dead
[official-gcc.git] / gomp-20050608-branch / gcc / testsuite / g++.old-deja / g++.mike / init1.C
blob0b47fb7e7059f27a06982f7f246de1f8d6e79a39
1 // { dg-do run  }
2 int count;
4 extern "C" void _exit(int);
6 struct C {
7   ~C() { if (count != 1) _exit(1); }
8 } c;
10 class A {
11 public:
12   ~A () { ++count; }
15 void f() {
16   static A a;
19 void g() {
20   // Since this isn't constructed, we can't destruct it.
21   static A a;
24 int main () {
25   f();