blob: ba79d712b0793eae5607edea1abde42b533342ef [file] [log] [blame]
/* PR c++/91334. */
/* { dg-do compile } */
#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(...) {} }