summaryrefslogtreecommitdiffstats
path: root/llvm/unittests/VMCore/InstructionsTest.cpp
diff options
context:
space:
mode:
authorGabor Greif <ggreif@gmail.com>2010-03-16 09:55:46 +0000
committerGabor Greif <ggreif@gmail.com>2010-03-16 09:55:46 +0000
commit155803840b5a62f48eddbf9ee04e608eeb702b16 (patch)
treee4d0a9777c89edcccf9ff2ef68f71c649304bc7b /llvm/unittests/VMCore/InstructionsTest.cpp
parentfd381328ff9e0cdc1cc9d889d04db47634d795e8 (diff)
downloadbcm5719-llvm-155803840b5a62f48eddbf9ee04e608eeb702b16.tar.gz
bcm5719-llvm-155803840b5a62f48eddbf9ee04e608eeb702b16.zip
begin humbly with a repro of PR6589
llvm-svn: 98623
Diffstat (limited to 'llvm/unittests/VMCore/InstructionsTest.cpp')
-rw-r--r--llvm/unittests/VMCore/InstructionsTest.cpp26
1 files changed, 26 insertions, 0 deletions
diff --git a/llvm/unittests/VMCore/InstructionsTest.cpp b/llvm/unittests/VMCore/InstructionsTest.cpp
new file mode 100644
index 00000000000..3823afc4429
--- /dev/null
+++ b/llvm/unittests/VMCore/InstructionsTest.cpp
@@ -0,0 +1,26 @@
+//===- llvm/unittest/VMCore/InstructionsTest.cpp - Instructions unit tests ===//
+//
+// The LLVM Compiler Infrastructure
+//
+// This file is distributed under the University of Illinois Open Source
+// License. See LICENSE.TXT for details.
+//
+//===----------------------------------------------------------------------===//
+
+#include "llvm/Instructions.h"
+#include "llvm/LLVMContext.h"
+#include "gtest/gtest.h"
+
+namespace llvm {
+namespace {
+
+TEST(InstructionsTest, ReturnInst_0) {
+ LLVMContext &C(getGlobalContext());
+
+ // reproduction recipe for PR6589
+ const ReturnInst* r0 = ReturnInst::Create(C);
+ EXPECT_NE(r0->op_begin(), r0->op_end());
+}
+
+} // end anonymous namespace
+} // end namespace llvm
OpenPOWER on IntegriCloud