URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.old-deja/] [g++.mike/] [init1.C] - Rev 823
Go to most recent revision | Compare with Previous | Blame | View Log
// { 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();
}
Go to most recent revision | Compare with Previous | Blame | View Log