#include "llvm-c/Core.h"
#include "llvm-c/Linker.h"
#include "llvm/ADT/STLExtras.h"
#include "llvm/AsmParser/Parser.h"
#include "llvm/IR/BasicBlock.h"
#include "llvm/IR/DataLayout.h"
#include "llvm/IR/Function.h"
#include "llvm/IR/IRBuilder.h"
#include "llvm/IR/Module.h"
#include "llvm/Linker/Linker.h"
#include "llvm/Support/SourceMgr.h"
#include "gtest/gtest.h"
usingnamespacellvm;
namespace {
class LinkModuleTest : public testing::Test { … };
static void expectNoDiags(const DiagnosticInfo *DI, void *C) { … }
TEST_F(LinkModuleTest, BlockAddress) { … }
static Module *getExternal(LLVMContext &Ctx, StringRef FuncName) { … }
static Module *getInternal(LLVMContext &Ctx) { … }
TEST_F(LinkModuleTest, EmptyModule) { … }
TEST_F(LinkModuleTest, EmptyModule2) { … }
TEST_F(LinkModuleTest, TypeMerge) { … }
TEST_F(LinkModuleTest, NewCAPISuccess) { … }
static void diagnosticHandler(LLVMDiagnosticInfoRef DI, void *C) { … }
TEST_F(LinkModuleTest, NewCAPIFailure) { … }
TEST_F(LinkModuleTest, MoveDistinctMDs) { … }
TEST_F(LinkModuleTest, RemangleIntrinsics) { … }
}