diff options
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), ""); |