diff options
author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2016-02-12 05:52:37 +0000 |
---|---|---|
committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2016-02-12 05:52:37 +0000 |
commit | 6a5c06eaad4b81f1fd4fe74031d375e6d29e87a2 (patch) | |
tree | c43bc03565c8f1badccfee21ffb495a5bfe514e7 | |
parent | 23299677148746d3d2f3048616ad58773096e700 (diff) | |
download | bcm5719-llvm-6a5c06eaad4b81f1fd4fe74031d375e6d29e87a2.tar.gz bcm5719-llvm-6a5c06eaad4b81f1fd4fe74031d375e6d29e87a2.zip |
[unittests/ADT] OptionSetTest: ifdef out a part that fails to compile on MSVC.
llvm-svn: 260655
-rw-r--r-- | llvm/unittests/ADT/OptionSetTest.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/unittests/ADT/OptionSetTest.cpp b/llvm/unittests/ADT/OptionSetTest.cpp index 8532c1d4e4f..2f22db47d17 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<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) { |