diff --git a/unittests/ADT/PointerUnionTest.cpp b/unittests/ADT/PointerUnionTest.cpp index 7eb718112d6..4dfcb7ea75d 100644 --- a/unittests/ADT/PointerUnionTest.cpp +++ b/unittests/ADT/PointerUnionTest.cpp @@ -13,11 +13,10 @@ using namespace llvm; namespace { -typedef PointerUnion PU; +typedef PointerUnion PU; // Test fixture -class PointerUnionTest : public testing::Test { -}; +class PointerUnionTest : public testing::Test {}; float f = 3.14f; int i = 42; @@ -47,18 +46,18 @@ TEST_F(PointerUnionTest, Null) { } TEST_F(PointerUnionTest, Is) { - EXPECT_FALSE(a.is()); - EXPECT_TRUE(a.is()); - EXPECT_TRUE(b.is()); - EXPECT_FALSE(b.is()); - EXPECT_TRUE(n.is()); - EXPECT_FALSE(n.is()); + EXPECT_FALSE(a.is()); + EXPECT_TRUE(a.is()); + EXPECT_TRUE(b.is()); + EXPECT_FALSE(b.is()); + EXPECT_TRUE(n.is()); + EXPECT_FALSE(n.is()); } TEST_F(PointerUnionTest, Get) { - EXPECT_EQ(a.get(), &f); - EXPECT_EQ(b.get(), &i); - EXPECT_EQ(n.get(), (int*)0); + EXPECT_EQ(a.get(), &f); + EXPECT_EQ(b.get(), &i); + EXPECT_EQ(n.get(), (int *)0); } } // end anonymous namespace