summaryrefslogtreecommitdiffstats
path: root/llvm/test/ExecutionEngine
diff options
context:
space:
mode:
authorLang Hames <lhames@gmail.com>2015-04-02 05:28:10 +0000
committerLang Hames <lhames@gmail.com>2015-04-02 05:28:10 +0000
commit2f50744fe723b48389ed1f30e8f3e73217a66f9e (patch)
tree22a04090cae276d087884d16e832aafba7644578 /llvm/test/ExecutionEngine
parentb965ac5dc9fb76eef51c75a8689d5dacc8d12d56 (diff)
downloadbcm5719-llvm-2f50744fe723b48389ed1f30e8f3e73217a66f9e.tar.gz
bcm5719-llvm-2f50744fe723b48389ed1f30e8f3e73217a66f9e.zip
[Orc] Fix local-linkage handling in the CompileOnDemand layer.
llvm-svn: 233895
Diffstat (limited to 'llvm/test/ExecutionEngine')
-rw-r--r--llvm/test/ExecutionEngine/OrcLazy/private_linkage.ll12
1 files changed, 12 insertions, 0 deletions
diff --git a/llvm/test/ExecutionEngine/OrcLazy/private_linkage.ll b/llvm/test/ExecutionEngine/OrcLazy/private_linkage.ll
new file mode 100644
index 00000000000..11813dd9776
--- /dev/null
+++ b/llvm/test/ExecutionEngine/OrcLazy/private_linkage.ll
@@ -0,0 +1,12 @@
+; RUN: lli -jit-kind=orc-lazy %s
+
+define private void @_ZL3foov() {
+entry:
+ ret void
+}
+
+define i32 @main(i32 %argc, i8** nocapture readnone %argv) {
+entry:
+ tail call void @_ZL3foov()
+ ret i32 0
+}
OpenPOWER on IntegriCloud