summaryrefslogtreecommitdiff
path: root/unittests
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
commit138acfe353ed8b895de093a4c118b01093b6fbfb (patch)
treec4bbb54c4fa0c7e99fb9d5b7af89a92bc82d870a /unittests
parent5a7069a80fee26490b201cb3d88eb124585bd6c8 (diff)
downloadllvm-138acfe353ed8b895de093a4c118b01093b6fbfb.tar.gz
llvm-138acfe353ed8b895de093a4c118b01093b6fbfb.tar.bz2
llvm-138acfe353ed8b895de093a4c118b01093b6fbfb.tar.xz
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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@98624 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'unittests')
-rw-r--r--unittests/VMCore/InstructionsTest.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/unittests/VMCore/InstructionsTest.cpp b/unittests/VMCore/InstructionsTest.cpp
index 3823afc442..15f894039f 100644
--- a/unittests/VMCore/InstructionsTest.cpp
+++ b/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