[llvm] r207465 - [cleanup] Fix the whitespace in this test. Notably, correct spacing
Chandler Carruth
chandlerc at gmail.com
Mon Apr 28 16:37:54 PDT 2014
Author: chandlerc
Date: Mon Apr 28 18:37:53 2014
New Revision: 207465
URL: http://llvm.org/viewvc/llvm-project?rev=207465&view=rev
Log:
[cleanup] Fix the whitespace in this test. Notably, correct spacing
around pointer types.
Modified:
llvm/trunk/unittests/ADT/PointerUnionTest.cpp
Modified: llvm/trunk/unittests/ADT/PointerUnionTest.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/unittests/ADT/PointerUnionTest.cpp?rev=207465&r1=207464&r2=207465&view=diff
==============================================================================
--- llvm/trunk/unittests/ADT/PointerUnionTest.cpp (original)
+++ llvm/trunk/unittests/ADT/PointerUnionTest.cpp Mon Apr 28 18:37:53 2014
@@ -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
More information about the llvm-commits
mailing list