URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
Subversion Repositories openrisc_2011-10-31
[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.old-deja/] [g++.oliva/] [new1.C] - Rev 149
Go to most recent revision | Compare with Previous | Blame | View Log
// { dg-do run }
// Copyright (C) 1999 Free Software Foundation
// by Alexandre Oliva <oliva@dcc.unicamp.br>
// based on comp.std.c++ post by Alexander Schiemann <aschiem@math.uni-sb.de>
// execution test
#include <new>
#include <stdlib.h>
struct A {
A() { throw 0; }
void* operator new(size_t size, double = 0.0) { return ::operator new(size);}
void operator delete(void* p, double) { exit(0); }
void operator delete(void* p) { abort(); }
};
int main() { try { new A; } catch(...) {} }
Go to most recent revision | Compare with Previous | Blame | View Log