Temporarly XFAIL aligned new/delete tests on Windows.
Libc++ doesn't provide its own definitions of new/delete on Windows, instead using the versions provided by VCRuntime. However VCRuntime does not yet implement aligned new/delete so these tests fail. It might be possible for libc++ to provide its own definitions only for aligned new/delete as long as MSVC doesn't provide it. However before this can be done libc++ needs to figure out how to implement std::get_new_handler. git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@302384 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -24,6 +24,11 @@
|
||||
// XFAIL: with_system_cxx_lib=macosx10.7
|
||||
// XFAIL: with_system_cxx_lib=macosx10.8
|
||||
|
||||
// On Windows libc++ doesn't provide its own definitions for new/delete
|
||||
// but instead depends on the ones in VCRuntime. However VCRuntime does not
|
||||
// yet provide aligned new/delete definitions so this test fails to compile/link.
|
||||
// XFAIL: LIBCXX-WINDOWS-FIXME
|
||||
|
||||
#include <new>
|
||||
#include <cstddef>
|
||||
#include <cstdlib>
|
||||
|
||||
@@ -22,6 +22,12 @@
|
||||
// XFAIL: with_system_cxx_lib=macosx10.7
|
||||
// XFAIL: with_system_cxx_lib=macosx10.8
|
||||
|
||||
|
||||
// On Windows libc++ doesn't provide its own definitions for new/delete
|
||||
// but instead depends on the ones in VCRuntime. However VCRuntime does not
|
||||
// yet provide aligned new/delete definitions so this test fails to link.
|
||||
// XFAIL: LIBCXX-WINDOWS-FIXME
|
||||
|
||||
// test operator new
|
||||
|
||||
#include <new>
|
||||
@@ -36,7 +42,7 @@ constexpr auto OverAligned = alignof(std::max_align_t) * 2;
|
||||
|
||||
int new_handler_called = 0;
|
||||
|
||||
void new_handler()
|
||||
void my_new_handler()
|
||||
{
|
||||
++new_handler_called;
|
||||
std::set_new_handler(0);
|
||||
@@ -52,7 +58,7 @@ struct alignas(OverAligned) A
|
||||
|
||||
void test_throw_max_size() {
|
||||
#ifndef TEST_HAS_NO_EXCEPTIONS
|
||||
std::set_new_handler(new_handler);
|
||||
std::set_new_handler(my_new_handler);
|
||||
try
|
||||
{
|
||||
void* vp = operator new[] (std::numeric_limits<std::size_t>::max(),
|
||||
|
||||
@@ -22,6 +22,11 @@
|
||||
// XFAIL: with_system_cxx_lib=macosx10.7
|
||||
// XFAIL: with_system_cxx_lib=macosx10.8
|
||||
|
||||
// On Windows libc++ doesn't provide its own definitions for new/delete
|
||||
// but instead depends on the ones in VCRuntime. However VCRuntime does not
|
||||
// yet provide aligned new/delete definitions so this test fails to compile/link.
|
||||
// XFAIL: LIBCXX-WINDOWS-FIXME
|
||||
|
||||
// test operator new (nothrow)
|
||||
|
||||
#include <new>
|
||||
|
||||
@@ -19,6 +19,11 @@
|
||||
|
||||
// XFAIL: no-aligned-allocation
|
||||
|
||||
// On Windows libc++ doesn't provide its own definitions for new/delete
|
||||
// but instead depends on the ones in VCRuntime. However VCRuntime does not
|
||||
// yet provide aligned new/delete definitions so this test fails.
|
||||
// XFAIL: LIBCXX-WINDOWS-FIXME
|
||||
|
||||
// test operator new nothrow by replacing only operator new
|
||||
|
||||
#include <new>
|
||||
|
||||
@@ -23,6 +23,11 @@
|
||||
// XFAIL: with_system_cxx_lib=macosx10.7
|
||||
// XFAIL: with_system_cxx_lib=macosx10.8
|
||||
|
||||
// On Windows libc++ doesn't provide its own definitions for new/delete
|
||||
// but instead depends on the ones in VCRuntime. However VCRuntime does not
|
||||
// yet provide aligned new/delete definitions so this test fails to compile/link.
|
||||
// XFAIL: LIBCXX-WINDOWS-FIXME
|
||||
|
||||
#include <new>
|
||||
#include <cstddef>
|
||||
#include <cstdlib>
|
||||
|
||||
@@ -22,6 +22,11 @@
|
||||
// FIXME turn this into an XFAIL
|
||||
// UNSUPPORTED: no-aligned-allocation
|
||||
|
||||
// On Windows libc++ doesn't provide its own definitions for new/delete
|
||||
// but instead depends on the ones in VCRuntime. However VCRuntime does not
|
||||
// yet provide aligned new/delete definitions so this test fails to compile/link.
|
||||
// XFAIL: LIBCXX-WINDOWS-FIXME
|
||||
|
||||
// test operator new
|
||||
|
||||
#include <new>
|
||||
|
||||
@@ -22,6 +22,11 @@
|
||||
// FIXME turn this into an XFAIL
|
||||
// UNSUPPORTED: no-aligned-allocation
|
||||
|
||||
// On Windows libc++ doesn't provide its own definitions for new/delete
|
||||
// but instead depends on the ones in VCRuntime. However VCRuntime does not
|
||||
// yet provide aligned new/delete definitions so this test fails to compile/link.
|
||||
// XFAIL: LIBCXX-WINDOWS-FIXME
|
||||
|
||||
// test operator new (nothrow)
|
||||
|
||||
#include <new>
|
||||
|
||||
@@ -19,6 +19,11 @@
|
||||
|
||||
// XFAIL: no-aligned-allocation
|
||||
|
||||
// On Windows libc++ doesn't provide its own definitions for new/delete
|
||||
// but instead depends on the ones in VCRuntime. However VCRuntime does not
|
||||
// yet provide aligned new/delete definitions so this test fails.
|
||||
// XFAIL: LIBCXX-WINDOWS-FIXME
|
||||
|
||||
// test operator new nothrow by replacing only operator new
|
||||
|
||||
#include <new>
|
||||
|
||||
Reference in New Issue
Block a user