From 55a7a2481bd78c3f9c7299c75dc19531cd6939a0 Mon Sep 17 00:00:00 2001 From: Richard Smith Date: Thu, 8 Oct 2015 23:44:26 +0000 Subject: [PATCH] Fix test failure in C++98 mode due to imperfect static_assert emulation. llvm-svn: 249780 --- libcxx/test/std/depr/depr.c.headers/stddef_h.pass.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libcxx/test/std/depr/depr.c.headers/stddef_h.pass.cpp b/libcxx/test/std/depr/depr.c.headers/stddef_h.pass.cpp index c03c314e3bc4..0c08c782a3e4 100644 --- a/libcxx/test/std/depr/depr.c.headers/stddef_h.pass.cpp +++ b/libcxx/test/std/depr/depr.c.headers/stddef_h.pass.cpp @@ -38,7 +38,7 @@ int main() "std::is_signed::value"); static_assert(std::is_integral::value, "std::is_integral::value"); - static_assert(std::is_same::value, + static_assert((std::is_same::value), "decltype(nullptr) == nullptr_t"); static_assert(sizeof(nullptr_t) == sizeof(void*), "sizeof(nullptr_t) == sizeof(void*)");