// None of the current GCC compilers support this.
// XFAIL: gcc-4, gcc-5, gcc-6
-// UBSAN replaces certain new/delete functions which makes this test fail
+// TODO Investigate why UBSAN prevents new from calling our replacement.
// XFAIL: ubsan
#include <new>
int main()
{
+ reset();
{
B *x = new B[2];
assert(0 == unsized_delete_called);
// None of the current GCC compilers support this.
// XFAIL: gcc-4, gcc-5, gcc-6
-// UBSAN replaces certain new/delete functions which makes this test fail
+// TODO Investigate why UBSAN prevents new from calling our replacement.
// XFAIL: ubsan
#include <new>
int main()
{
+ reset();
{
B *x = new B;
assert(0 == unsized_delete_called);