diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2015-10-08 23:44:26 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2015-10-08 23:44:26 +0000 |
commit | 55a7a2481bd78c3f9c7299c75dc19531cd6939a0 (patch) | |
tree | b7cdc25d39dd0a2511be343fd5b04892949c9a6a /libcxx/test/std/depr/depr.c.headers | |
parent | 3c520a1272698aa7e39b3d40334c76abd217d0ef (diff) | |
download | bcm5719-llvm-55a7a2481bd78c3f9c7299c75dc19531cd6939a0.tar.gz bcm5719-llvm-55a7a2481bd78c3f9c7299c75dc19531cd6939a0.zip |
Fix test failure in C++98 mode due to imperfect static_assert emulation.
llvm-svn: 249780
Diffstat (limited to 'libcxx/test/std/depr/depr.c.headers')
-rw-r--r-- | libcxx/test/std/depr/depr.c.headers/stddef_h.pass.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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 c03c314e3bc..0c08c782a3e 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<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*)"); |