[llvm] r260655 - [unittests/ADT] OptionSetTest: ifdef out a part that fails to compile on MSVC.

Argyrios Kyrtzidis via llvm-commits llvm-commits at lists.llvm.org
Thu Feb 11 21:52:38 PST 2016


Author: akirtzidis
Date: Thu Feb 11 23:52:37 2016
New Revision: 260655

URL: http://llvm.org/viewvc/llvm-project?rev=260655&view=rev
Log:
[unittests/ADT] OptionSetTest: ifdef out a part that fails to compile on MSVC.

Modified:
    llvm/trunk/unittests/ADT/OptionSetTest.cpp

Modified: llvm/trunk/unittests/ADT/OptionSetTest.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/unittests/ADT/OptionSetTest.cpp?rev=260655&r1=260654&r2=260655&view=diff
==============================================================================
--- llvm/trunk/unittests/ADT/OptionSetTest.cpp (original)
+++ llvm/trunk/unittests/ADT/OptionSetTest.cpp Thu Feb 11 23:52:37 2016
@@ -65,6 +65,8 @@ TEST(OptionSet, intptr_t) {
   EXPECT_EQ(static_cast<intptr_t>(Small::A), static_cast<intptr_t>(small));
 
 
+#ifndef _MSC_VER
+  // Fails to compile in MSVC.
   enum class UPtr : uintptr_t {
     A = std::numeric_limits<uintptr_t>::max()
   };
@@ -79,6 +81,7 @@ TEST(OptionSet, intptr_t) {
 
   OptionSet<Ptr> ptr = Ptr::A;
   EXPECT_EQ(static_cast<intptr_t>(Ptr::A), static_cast<intptr_t>(ptr));
+#endif
 }
 
 TEST(OptionSet, intptr_t_isConstructible) {




More information about the llvm-commits mailing list