1 // { dg-do run { xfail sparc64-*-elf arm-*-pe } }
2 // { dg-options "-fexceptions" }
9 void *operator new(size_t sz
) { ++count
; return malloc (sz
); }
10 void operator delete(void *p
) throw() { --count
; free (p
); }
15 A(const A
&) { ++acount
; }
22 // The standard library may have called new and/or delete during
23 // startup, so we have to reset the counter here.
26 for( i
= 0; i
< 10; i
++ ) {