Skip to content

Commit 797cb4f

Browse files
committed
Clarify XFAIL comments
llvm-svn: 284282
1 parent 22bff66 commit 797cb4f

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

libcxx/test/std/language.support/support.dynamic/new.delete/new.delete.array/delete_align_val_t_replace.pass.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
// None of the current GCC compilers support this.
1818
// XFAIL: gcc-4, gcc-5, gcc-6
1919

20-
// UBSAN replaces certain new/delete functions which makes this test fail
20+
// TODO Investigate why UBSAN prevents new from calling our replacement.
2121
// XFAIL: ubsan
2222

2323
#include <new>
@@ -60,6 +60,7 @@ struct alignas(std::max_align_t) B {};
6060

6161
int main()
6262
{
63+
reset();
6364
{
6465
B *x = new B[2];
6566
assert(0 == unsized_delete_called);

libcxx/test/std/language.support/support.dynamic/new.delete/new.delete.single/delete_align_val_t_replace.pass.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
// None of the current GCC compilers support this.
1818
// XFAIL: gcc-4, gcc-5, gcc-6
1919

20-
// UBSAN replaces certain new/delete functions which makes this test fail
20+
// TODO Investigate why UBSAN prevents new from calling our replacement.
2121
// XFAIL: ubsan
2222

2323
#include <new>
@@ -60,6 +60,7 @@ struct alignas(std::max_align_t) B {};
6060

6161
int main()
6262
{
63+
reset();
6364
{
6465
B *x = new B;
6566
assert(0 == unsized_delete_called);

0 commit comments

Comments
 (0)