aboutsummaryrefslogtreecommitdiffstats
path: root/test/ExecutionEngine/OrcMCJIT/remote/cross-module-a.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/ExecutionEngine/OrcMCJIT/remote/cross-module-a.ll')
-rw-r--r--test/ExecutionEngine/OrcMCJIT/remote/cross-module-a.ll12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/ExecutionEngine/OrcMCJIT/remote/cross-module-a.ll b/test/ExecutionEngine/OrcMCJIT/remote/cross-module-a.ll
new file mode 100644
index 0000000..16553eb
--- /dev/null
+++ b/test/ExecutionEngine/OrcMCJIT/remote/cross-module-a.ll
@@ -0,0 +1,12 @@
+; RUN: %lli -jit-kind=orc-mcjit -extra-module=%p/Inputs/cross-module-b.ll -disable-lazy-compilation=true -remote-mcjit -mcjit-remote-process=lli-child-target%exeext %s > /dev/null
+
+declare i32 @FB()
+
+define i32 @FA() nounwind {
+ ret i32 0
+}
+
+define i32 @main() nounwind {
+ %r = call i32 @FB( ) ; <i32> [#uses=1]
+ ret i32 %r
+}