summaryrefslogtreecommitdiffstats
path: root/lldb/unittests/ScriptInterpreter
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/unittests/ScriptInterpreter')
-rw-r--r--lldb/unittests/ScriptInterpreter/Lua/LuaTests.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/lldb/unittests/ScriptInterpreter/Lua/LuaTests.cpp b/lldb/unittests/ScriptInterpreter/Lua/LuaTests.cpp
index fa8e61a69b3..464babcb290 100644
--- a/lldb/unittests/ScriptInterpreter/Lua/LuaTests.cpp
+++ b/lldb/unittests/ScriptInterpreter/Lua/LuaTests.cpp
@@ -11,6 +11,8 @@
using namespace lldb_private;
+extern "C" int luaopen_lldb(lua_State *L) { return 0; }
+
TEST(LuaTest, RunValid) {
Lua lua;
llvm::Error error = lua.Run("foo = 1");
OpenPOWER on IntegriCloud