[llvm-commits] [llvm] r98623 - /llvm/trunk/unittests/VMCore/InstructionsTest.cpp

Gabor Greif ggreif at gmail.com
Tue Mar 16 02:55:46 PDT 2010


Author: ggreif
Date: Tue Mar 16 04:55:46 2010
New Revision: 98623

URL: http://llvm.org/viewvc/llvm-project?rev=98623&view=rev
Log:
begin humbly with a repro of PR6589

Added:
    llvm/trunk/unittests/VMCore/InstructionsTest.cpp

Added: llvm/trunk/unittests/VMCore/InstructionsTest.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/unittests/VMCore/InstructionsTest.cpp?rev=98623&view=auto
==============================================================================
--- llvm/trunk/unittests/VMCore/InstructionsTest.cpp (added)
+++ llvm/trunk/unittests/VMCore/InstructionsTest.cpp Tue Mar 16 04:55:46 2010
@@ -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





More information about the llvm-commits mailing list