1 //===- llvm/unittest/VMCore/InstructionsTest.cpp - Instructions unit tests ===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 #include "llvm/Instructions.h"
11 #include "llvm/LLVMContext.h"
12 #include "gtest/gtest.h"
17 TEST(InstructionsTest, ReturnInst) {
18 LLVMContext &C(getGlobalContext());
21 const ReturnInst* r0 = ReturnInst::Create(C);
22 EXPECT_EQ(r0->op_begin(), r0->op_end());
25 } // end anonymous namespace
26 } // end namespace llvm