Author: rsmith Date: Thu Oct 8 18:44:26 2015 New Revision: 249780 URL: http://llvm.org/viewvc/llvm-project?rev=249780&view=rev Log: Fix test failure in C++98 mode due to imperfect static_assert emulation.
Modified: libcxx/trunk/test/std/depr/depr.c.headers/stddef_h.pass.cpp Modified: libcxx/trunk/test/std/depr/depr.c.headers/stddef_h.pass.cpp URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/depr/depr.c.headers/stddef_h.pass.cpp?rev=249780&r1=249779&r2=249780&view=diff ============================================================================== --- libcxx/trunk/test/std/depr/depr.c.headers/stddef_h.pass.cpp (original) +++ libcxx/trunk/test/std/depr/depr.c.headers/stddef_h.pass.cpp Thu Oct 8 18:44:26 2015 @@ -38,7 +38,7 @@ int main() "std::is_signed<ptrdiff_t>::value"); static_assert(std::is_integral<ptrdiff_t>::value, "std::is_integral<ptrdiff_t>::value"); - static_assert(std::is_same<decltype(nullptr), nullptr_t>::value, + static_assert((std::is_same<decltype(nullptr), nullptr_t>::value), "decltype(nullptr) == nullptr_t"); static_assert(sizeof(nullptr_t) == sizeof(void*), "sizeof(nullptr_t) == sizeof(void*)"); _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits