};
TEST_F(PointerIntPairTest, GetSet) {
- PointerIntPair<PointerIntPairTest *, 2> Pair{this, 1U};
+ PointerIntPair<PointerIntPairTest *, 2> Pair(this, 1U);
EXPECT_EQ(this, Pair.getPointer());
EXPECT_EQ(1U, Pair.getInt());
EXPECT_EQ(0U, Pair.getInt());
}
+#if !(defined(_MSC_VER) && _MSC_VER==1700)
TEST_F(PointerIntPairTest, ManyUnusedBits) {
// In real code this would be a word-sized integer limited to 31 bits.
struct Fixnum31 {
PointerIntPair<Fixnum31, 1, bool, FixnumPointerTraits> pair;
EXPECT_EQ((uintptr_t)0, pair.getPointer().Value);
- EXPECT_EQ(false, pair.getInt());
+ EXPECT_FALSE(pair.getInt());
pair.setPointerAndInt({ 0x7FFFFFFF }, true );
EXPECT_EQ((uintptr_t)0x7FFFFFFF, pair.getPointer().Value);
- EXPECT_EQ(true, pair.getInt());
+ EXPECT_TRUE(pair.getInt());
EXPECT_EQ(FixnumPointerTraits::NumLowBitsAvailable - 1,
PointerLikeTypeTraits<decltype(pair)>::NumLowBitsAvailable);
}
+#endif
} // end anonymous namespace