[libcxx-commits] [PATCH] D88820: [libc++] Fix aligned_alloc tests FreeBSD
Alexander Richardson via Phabricator via libcxx-commits
libcxx-commits at lists.llvm.org
Sun Oct 18 10:47:22 PDT 2020
This revision was automatically updated to reflect the committed changes.
Closed by commit rG82b0ac4f1f8b: [libc++] Fix aligned_alloc tests FreeBSD (authored by arichardson).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D88820/new/
https://reviews.llvm.org/D88820
Files:
libcxx/test/std/depr/depr.c.headers/stdlib_h.pass.cpp
libcxx/test/std/language.support/support.runtime/cstdlib.pass.cpp
Index: libcxx/test/std/language.support/support.runtime/cstdlib.pass.cpp
===================================================================
--- libcxx/test/std/language.support/support.runtime/cstdlib.pass.cpp
+++ libcxx/test/std/language.support/support.runtime/cstdlib.pass.cpp
@@ -120,7 +120,8 @@
static_assert((std::is_same<decltype(std::srand(0)), void>::value), "");
#if TEST_STD_VER > 14 && defined(TEST_HAS_ALIGNED_ALLOC)
- static_assert((std::is_same<decltype(std::aligned_alloc(0,0)), void*>::value), "");
+ static_assert(
+ (std::is_same<decltype(std::aligned_alloc(1, 0)), void*>::value), "");
#endif
static_assert((std::is_same<decltype(std::calloc(0,0)), void*>::value), "");
Index: libcxx/test/std/depr/depr.c.headers/stdlib_h.pass.cpp
===================================================================
--- libcxx/test/std/depr/depr.c.headers/stdlib_h.pass.cpp
+++ libcxx/test/std/depr/depr.c.headers/stdlib_h.pass.cpp
@@ -133,7 +133,8 @@
static_assert((std::is_same<decltype(srand(0)), void>::value), "");
#if TEST_STD_VER > 14 && defined(TEST_HAS_ALIGNED_ALLOC)
- static_assert((std::is_same<decltype(aligned_alloc(0,0)), void*>::value), "");
+ static_assert((std::is_same<decltype(aligned_alloc(1, 0)), void*>::value),
+ "");
#endif
static_assert((std::is_same<decltype(calloc(0,0)), void*>::value), "");
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D88820.298886.patch
Type: text/x-patch
Size: 1393 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20201018/b5cd0727/attachment.bin>
More information about the libcxx-commits
mailing list