mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-30 19:35:54 +00:00
59efa0e9b9
I made my best guess at the Makefile, since I don't have a make build. I'm not sure if it should be valid to add an empty list of things, but it seemed the sort of degenerate case. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@230196 91177308-0d34-0410-b5e6-96231b3b80d8
31 lines
874 B
C++
31 lines
874 B
C++
//===- LazyEmittingLayerTest.cpp - Unit tests for the lazy emitting layer -===//
|
|
//
|
|
// The LLVM Compiler Infrastructure
|
|
//
|
|
// This file is distributed under the University of Illinois Open Source
|
|
// License. See LICENSE.TXT for details.
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
#include "llvm/ExecutionEngine/Orc/LazyEmittingLayer.h"
|
|
#include "gtest/gtest.h"
|
|
|
|
namespace {
|
|
|
|
struct MockBaseLayer {
|
|
typedef int ModuleSetHandleT;
|
|
ModuleSetHandleT addModuleSet(std::list<std::unique_ptr<llvm::Module>>,
|
|
std::unique_ptr<llvm::RTDyldMemoryManager> x) {
|
|
EXPECT_FALSE(x);
|
|
return 42;
|
|
}
|
|
};
|
|
|
|
TEST(LazyEmittingLayerTest, Empty) {
|
|
MockBaseLayer M;
|
|
llvm::orc::LazyEmittingLayer<MockBaseLayer> L(M);
|
|
L.addModuleSet(std::list<std::unique_ptr<llvm::Module>>(), nullptr);
|
|
}
|
|
|
|
}
|