blob: 0b47fb7e7059f27a06982f7f246de1f8d6e79a39 [file] [log] [blame]
// { dg-do run }
int count;
extern "C" void _exit(int);
struct C {
~C() { if (count != 1) _exit(1); }
} c;
class A {
public:
~A () { ++count; }
};
void f() {
static A a;
}
void g() {
// Since this isn't constructed, we can't destruct it.
static A a;
}
int main () {
f();
}