mirror of
https://github.com/RPCS3/llvm.git
synced 2025-04-12 02:47:10 +00:00
begin humbly with a repro of PR6589
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@98623 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
50010429a7
commit
5a7069a80f
26
unittests/VMCore/InstructionsTest.cpp
Normal file
26
unittests/VMCore/InstructionsTest.cpp
Normal file
@ -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
|
Loading…
x
Reference in New Issue
Block a user