From 58e985c2db3045f1416520212108f93c8c257b18 Mon Sep 17 00:00:00 2001 From: Eric Fiselier Date: Wed, 11 Feb 2015 01:18:05 +0000 Subject: [PATCH] Make convert_to_integral.pass.cpp more platform generic. Don't depend on the underlying types of enums and wchar_t. llvm-svn: 228781 --- libcxx/test/libcxx/type_traits/convert_to_integral.pass.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/libcxx/test/libcxx/type_traits/convert_to_integral.pass.cpp b/libcxx/test/libcxx/type_traits/convert_to_integral.pass.cpp index ccdc767..37060a0 100644 --- a/libcxx/test/libcxx/type_traits/convert_to_integral.pass.cpp +++ b/libcxx/test/libcxx/type_traits/convert_to_integral.pass.cpp @@ -68,7 +68,7 @@ int main() check_integral_types(); check_integral_types(); check_integral_types(); - check_integral_types(); + check_integral_types(); check_integral_types(); check_integral_types(); check_integral_types(); @@ -84,6 +84,8 @@ int main() check_integral_types<__uint128_t, __uint128_t>(); #endif // TODO(ericwf): Not standard - check_enum_types(); - check_enum_types(); + typedef std::underlying_type::type Enum1UT; + check_enum_types(); + typedef std::underlying_type::type Enum2UT; + check_enum_types(); } -- 2.7.4