summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChandler Carruth <chandlerc@gmail.com>2014-04-28 23:37:53 +0000
committerChandler Carruth <chandlerc@gmail.com>2014-04-28 23:37:53 +0000
commit1284df1306042bb2286c49cd79fbe64ab2df6cbc (patch)
tree77b4d9368cd511ab8f98170a459da3721e2c65cc
parent6ada8e332b07cd20c8de455d25378eb299daeb44 (diff)
downloadbcm5719-llvm-1284df1306042bb2286c49cd79fbe64ab2df6cbc.tar.gz
bcm5719-llvm-1284df1306042bb2286c49cd79fbe64ab2df6cbc.zip
[cleanup] Fix the whitespace in this test. Notably, correct spacing
around pointer types. llvm-svn: 207465
-rw-r--r--llvm/unittests/ADT/PointerUnionTest.cpp23
1 files changed, 11 insertions, 12 deletions
diff --git a/llvm/unittests/ADT/PointerUnionTest.cpp b/llvm/unittests/ADT/PointerUnionTest.cpp
index 7eb718112d6..4dfcb7ea75d 100644
--- a/llvm/unittests/ADT/PointerUnionTest.cpp
+++ b/llvm/unittests/ADT/PointerUnionTest.cpp
@@ -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
OpenPOWER on IntegriCloud