fix PR6589
[oota-llvm.git] / unittests / VMCore / InstructionsTest.cpp
index 3823afc4429ea9bc6f50873171719881bfb15eba..15f894039f1f2d7744f9c3f31cdc539134e394be 100644 (file)
 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