URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
Subversion Repositories openrisc_me
[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [g++.old-deja/] [g++.mike/] [p783a.C] - Rev 307
Go to most recent revision | Compare with Previous | Blame | View Log
// { dg-do run }
// Copying into an object directly is a lose according to tiemann.
// Deleting an object many times is a lose.
// prms-id: 783
extern "C" int printf (const char *, ...);
extern "C" void exit (int);
class C {
int i;
public:
C() {
i = 1;
}
~C() {
if (i != 1) {
exit(1);
}
i = 0;
}
};
int main(int argc, char**argv) {
C c;
c = C();
return 0;
}
Go to most recent revision | Compare with Previous | Blame | View Log