From 6a5c06eaad4b81f1fd4fe74031d375e6d29e87a2 Mon Sep 17 00:00:00 2001 From: Argyrios Kyrtzidis Date: Fri, 12 Feb 2016 05:52:37 +0000 Subject: [PATCH] [unittests/ADT] OptionSetTest: ifdef out a part that fails to compile on MSVC. llvm-svn: 260655 --- llvm/unittests/ADT/OptionSetTest.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/llvm/unittests/ADT/OptionSetTest.cpp b/llvm/unittests/ADT/OptionSetTest.cpp index 8532c1d..2f22db4 100644 --- a/llvm/unittests/ADT/OptionSetTest.cpp +++ b/llvm/unittests/ADT/OptionSetTest.cpp @@ -65,6 +65,8 @@ TEST(OptionSet, intptr_t) { EXPECT_EQ(static_cast(Small::A), static_cast(small)); +#ifndef _MSC_VER + // Fails to compile in MSVC. enum class UPtr : uintptr_t { A = std::numeric_limits::max() }; @@ -79,6 +81,7 @@ TEST(OptionSet, intptr_t) { OptionSet ptr = Ptr::A; EXPECT_EQ(static_cast(Ptr::A), static_cast(ptr)); +#endif } TEST(OptionSet, intptr_t_isConstructible) { -- 2.7.4