[libcxx] r295558 - test: explicitly size enumeration

Saleem Abdulrasool via cfe-commits cfe-commits at lists.llvm.org
Sat Feb 18 11:28:36 PST 2017


Author: compnerd
Date: Sat Feb 18 13:28:36 2017
New Revision: 295558

URL: http://llvm.org/viewvc/llvm-project?rev=295558&view=rev
Log:
test: explicitly size enumeration

On certain targets, enumerations may be smaller than an `unsigned long`.
Use an explicitly sized enumeration.

Modified:
    libcxx/trunk/test/libcxx/type_traits/convert_to_integral.pass.cpp

Modified: libcxx/trunk/test/libcxx/type_traits/convert_to_integral.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/libcxx/type_traits/convert_to_integral.pass.cpp?rev=295558&r1=295557&r2=295558&view=diff
==============================================================================
--- libcxx/trunk/test/libcxx/type_traits/convert_to_integral.pass.cpp (original)
+++ libcxx/trunk/test/libcxx/type_traits/convert_to_integral.pass.cpp Sat Feb 18 13:28:36 2017
@@ -76,7 +76,7 @@ void check_enum_types()
 
 
 enum enum1 { zero = 0, one = 1 };
-enum enum2 {
+enum enum2 : unsigned long {
   value = std::numeric_limits<unsigned long>::max()
 };
 




More information about the cfe-commits mailing list