1 // This test fails on VxWorks in kernel mode because it depends on the
2 // library version of "::operator new[]" calling the "::operator new"
3 // defined in this module. This doesn't work because the library version
4 // of "::operator new[]" is built into the kernel itself; library relocations
5 // are resolved when the kernel is linked.
6 // { dg-do run { xfail { powerpc-ibm-aix* || vxworks_kernel } } }
7 // { dg-options "-flat_namespace" { target *-*-darwin[67]* } }
8 // Avoid use of none-overridable new/delete operators in shared
9 // { dg-options "-static" { target *-*-mingw* } }
10 // GROUPS passed operator-new
17 void *operator new(size_t sz)
18 #if __cplusplus <= 199711L
19 throw (std::bad_alloc)
48 { printf ("FAIL\n"); return 1; }