diff options
author | Marshall Clow <mclow.lists@gmail.com> | 2013-07-08 20:05:31 +0000 |
---|---|---|
committer | Marshall Clow <mclow.lists@gmail.com> | 2013-07-08 20:05:31 +0000 |
commit | f331327c6a70e80fff4b4f1cebec0f81a0064748 (patch) | |
tree | a4157ac1afdde8b3d38e3dbdb9d958c3c823d67f /libcxx/test | |
parent | 21ada797577f85ebd66a5aeb29c5c2a4373029c5 (diff) | |
download | bcm5719-llvm-f331327c6a70e80fff4b4f1cebec0f81a0064748.tar.gz bcm5719-llvm-f331327c6a70e80fff4b4f1cebec0f81a0064748.zip |
Implement n3545 for c++14
llvm-svn: 185856
Diffstat (limited to 'libcxx/test')
-rw-r--r-- | libcxx/test/utilities/meta/meta.hel/integral_constant.pass.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libcxx/test/utilities/meta/meta.hel/integral_constant.pass.cpp b/libcxx/test/utilities/meta/meta.hel/integral_constant.pass.cpp index 7f9e2769070..92d13c55e58 100644 --- a/libcxx/test/utilities/meta/meta.hel/integral_constant.pass.cpp +++ b/libcxx/test/utilities/meta/meta.hel/integral_constant.pass.cpp @@ -26,6 +26,11 @@ int main() assert(_5() == 5); #endif +#if _LIBCPP_STD_VER > 11 + static_assert ( _5{}() == 5, "" ); + static_assert ( std::true_type{}(), "" ); +#endif + static_assert(std::false_type::value == false, ""); static_assert((std::is_same<std::false_type::value_type, bool>::value), ""); static_assert((std::is_same<std::false_type::type, std::false_type>::value), ""); |