Skip to content

Commit

Permalink
[unittests/ADT] OptionSetTest: ifdef out a part that fails to compile…
Browse files Browse the repository at this point in the history
… on MSVC.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@260655 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
akyrtzi committed Feb 12, 2016
1 parent 382c649 commit 6ca1d41
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions unittests/ADT/OptionSetTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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()
};
Expand All @@ -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) {
Expand Down

0 comments on commit 6ca1d41

Please sign in to comment.