diff options
Diffstat (limited to 'unittests')
-rw-r--r-- | unittests/Support/IRBuilderTest.cpp | 4 | ||||
-rw-r--r-- | unittests/Transforms/Utils/Cloning.cpp | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/unittests/Support/IRBuilderTest.cpp b/unittests/Support/IRBuilderTest.cpp index b15de9e..9c48c2c 100644 --- a/unittests/Support/IRBuilderTest.cpp +++ b/unittests/Support/IRBuilderTest.cpp @@ -20,6 +20,7 @@ using namespace llvm; namespace { + class IRBuilderTest : public testing::Test { protected: virtual void SetUp() { @@ -38,7 +39,6 @@ protected: OwningPtr<Module> M; BasicBlock *BB; }; -} TEST_F(IRBuilderTest, Lifetime) { IRBuilder<> Builder(BB); @@ -70,3 +70,5 @@ TEST_F(IRBuilderTest, Lifetime) { ASSERT_TRUE(II_End1 != NULL); EXPECT_EQ(II_End1->getIntrinsicID(), Intrinsic::lifetime_end); } + +} diff --git a/unittests/Transforms/Utils/Cloning.cpp b/unittests/Transforms/Utils/Cloning.cpp index 4243b2d..ea3d5be 100644 --- a/unittests/Transforms/Utils/Cloning.cpp +++ b/unittests/Transforms/Utils/Cloning.cpp @@ -18,6 +18,7 @@ using namespace llvm; namespace { + class CloneInstruction : public ::testing::Test { protected: virtual void SetUp() { @@ -48,7 +49,6 @@ protected: LLVMContext context; Value *V; }; -} TEST_F(CloneInstruction, OverflowBits) { V = new Argument(Type::getInt32Ty(context)); @@ -142,3 +142,5 @@ TEST_F(CloneInstruction, Exact) { SDiv->setIsExact(true); EXPECT_TRUE(this->clone(SDiv)->isExact()); } + +} |