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/] [net40.C] - Rev 841
Go to most recent revision | Compare with Previous | Blame | View Log
// { dg-do run }
#include <stddef.h>
#include <stdlib.h>
class toto {
public:
void * operator new (size_t t) {
abort();
}
void operator delete (void*p, size_t t) {
abort();
}
};
int main() {
toto * p;
p = new toto[5];
delete [] p;
}
Go to most recent revision | Compare with Previous | Blame | View Log