diff options
Diffstat (limited to 'test/ExecutionEngine/OrcJIT/cross-module-a.ll')
-rw-r--r-- | test/ExecutionEngine/OrcJIT/cross-module-a.ll | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test/ExecutionEngine/OrcJIT/cross-module-a.ll b/test/ExecutionEngine/OrcJIT/cross-module-a.ll new file mode 100644 index 0000000..14a73f5 --- /dev/null +++ b/test/ExecutionEngine/OrcJIT/cross-module-a.ll @@ -0,0 +1,13 @@ +; RUN: %lli -use-orcmcjit -extra-module=%p/Inputs/cross-module-b.ll %s > /dev/null + +declare i32 @FB() + +define i32 @FA() { + ret i32 0 +} + +define i32 @main() { + %r = call i32 @FB( ) ; <i32> [#uses=1] + ret i32 %r +} + |