summaryrefslogtreecommitdiff
path: root/unittests
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
commit5a7069a80fee26490b201cb3d88eb124585bd6c8 (patch)
tree5dcf797c1af83b73f38b4b946e5cbcde14422979 /unittests
parent50010429a7c3285dab15ede68acae7231fade367 (diff)
downloadllvm-5a7069a80fee26490b201cb3d88eb124585bd6c8.tar.gz
llvm-5a7069a80fee26490b201cb3d88eb124585bd6c8.tar.bz2
llvm-5a7069a80fee26490b201cb3d88eb124585bd6c8.tar.xz
begin humbly with a repro of PR6589
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@98623 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'unittests')
-rw-r--r--unittests/VMCore/InstructionsTest.cpp26
1 files changed, 26 insertions, 0 deletions
diff --git a/unittests/VMCore/InstructionsTest.cpp b/unittests/VMCore/InstructionsTest.cpp
new file mode 100644
index 0000000000..3823afc442
--- /dev/null
+++ b/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