summaryrefslogtreecommitdiffstats
path: root/llvm/unittests/VMCore/InstructionsTest.cpp
diff options
context:
space:
mode:
authorGabor Greif <ggreif@gmail.com>2010-03-16 10:59:48 +0000
committerGabor Greif <ggreif@gmail.com>2010-03-16 10:59:48 +0000
commit35a9b8baeb434c93a6e9c47bac68310fa6ebf1c5 (patch)
treec81a6fff1f41298ab041450cd960482994173993 /llvm/unittests/VMCore/InstructionsTest.cpp
parent155803840b5a62f48eddbf9ee04e608eeb702b16 (diff)
downloadbcm5719-llvm-35a9b8baeb434c93a6e9c47bac68310fa6ebf1c5.tar.gz
bcm5719-llvm-35a9b8baeb434c93a6e9c47bac68310fa6ebf1c5.zip
fix PR6589
adjusted unittest I have added some doxygen to OptionalOperandTraits, so hopefully there will be no confusion in the future. Incidentally OptionalOperandTraits is not used any more (IIUC), but the obvious client would be BranchInstr, and I plan to rearrange it that way. llvm-svn: 98624
Diffstat (limited to 'llvm/unittests/VMCore/InstructionsTest.cpp')
-rw-r--r--llvm/unittests/VMCore/InstructionsTest.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/unittests/VMCore/InstructionsTest.cpp b/llvm/unittests/VMCore/InstructionsTest.cpp
index 3823afc4429..15f894039f1 100644
--- a/llvm/unittests/VMCore/InstructionsTest.cpp
+++ b/llvm/unittests/VMCore/InstructionsTest.cpp
@@ -14,12 +14,12 @@
namespace llvm {
namespace {
-TEST(InstructionsTest, ReturnInst_0) {
+TEST(InstructionsTest, ReturnInst) {
LLVMContext &C(getGlobalContext());
- // reproduction recipe for PR6589
+ // test for PR6589
const ReturnInst* r0 = ReturnInst::Create(C);
- EXPECT_NE(r0->op_begin(), r0->op_end());
+ EXPECT_EQ(r0->op_begin(), r0->op_end());
}
} // end anonymous namespace
OpenPOWER on IntegriCloud