diff --git a/libcxx/test/libcxx/language.support/support.dynamic/libcpp_deallocate.sh.cpp b/libcxx/test/libcxx/language.support/support.dynamic/libcpp_deallocate.sh.cpp --- a/libcxx/test/libcxx/language.support/support.dynamic/libcpp_deallocate.sh.cpp +++ b/libcxx/test/libcxx/language.support/support.dynamic/libcpp_deallocate.sh.cpp @@ -9,10 +9,6 @@ // test libc++'s implementation of align_val_t, and the relevant new/delete // overloads in all dialects when -faligned-allocation is present. -// Libc++ defers to the underlying MSVC library to provide the new/delete -// definitions, which does not yet provide aligned allocation -// XFAIL: LIBCXX-WINDOWS-FIXME - // XFAIL: LIBCXX-AIX-FIXME // The dylibs shipped before macosx10.13 do not contain the aligned allocation @@ -115,14 +111,14 @@ #ifndef NO_ALIGN void operator delete(void* p, std::align_val_t a)TEST_NOEXCEPT { - ::free(p); + std::__libcpp_aligned_free(p); stats.aligned_called++; stats.last_align = static_cast(a); stats.last_size = -1; } void operator delete(void* p, size_t n, std::align_val_t a)TEST_NOEXCEPT { - ::free(p); + std::__libcpp_aligned_free(p); stats.aligned_sized_called++; stats.last_align = static_cast(a); stats.last_size = n;