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++.robertl/] [eb15.C] - Rev 414
Go to most recent revision | Compare with Previous | Blame | View Log
// { dg-do assemble }
#include<iostream>
#include<cstddef>
struct A {
A() {
std::cerr<<"A constructing\n";
throw 1;
}
void *operator new(size_t sz) {
std::cerr<<"A allocated\n";
return ::operator new(sz);
}
void operator delete (void *p) {
std::cerr<<"A deleted\n";
::operator delete (p);
}
};
int main() {
try {
new A();
} catch (...) {
}
}
Go to most recent revision | Compare with Previous | Blame | View Log