Commit 4fc90438 by Alexandre Oliva Committed by Alexandre Oliva

* new1.C: New test.

From-SVN: r27888
parent 5f04b627
1999-07-01 Alexandre Oliva <oliva@dcc.unicamp.br>
* new1.C: New test.
* partord1.C: New test.
* template1.C: New test.
......
// 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 - XFAIL *-*-*
#include <new>
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(...) {} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment