[cleanup] Fix the whitespace in this test. Notably, correct spacing

around pointer types.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@207465 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chandler Carruth 2014-04-28 23:37:53 +00:00
parent d13e09a560
commit e753df3566

View File

@ -13,11 +13,10 @@ using namespace llvm;
namespace {
typedef PointerUnion<int*, float*> PU;
typedef PointerUnion<int *, float *> 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<int*>());
EXPECT_TRUE(a.is<float*>());
EXPECT_TRUE(b.is<int*>());
EXPECT_FALSE(b.is<float*>());
EXPECT_TRUE(n.is<int*>());
EXPECT_FALSE(n.is<float*>());
EXPECT_FALSE(a.is<int *>());
EXPECT_TRUE(a.is<float *>());
EXPECT_TRUE(b.is<int *>());
EXPECT_FALSE(b.is<float *>());
EXPECT_TRUE(n.is<int *>());
EXPECT_FALSE(n.is<float *>());
}
TEST_F(PointerUnionTest, Get) {
EXPECT_EQ(a.get<float*>(), &f);
EXPECT_EQ(b.get<int*>(), &i);
EXPECT_EQ(n.get<int*>(), (int*)0);
EXPECT_EQ(a.get<float *>(), &f);
EXPECT_EQ(b.get<int *>(), &i);
EXPECT_EQ(n.get<int *>(), (int *)0);
}
} // end anonymous namespace