aboutsummaryrefslogtreecommitdiffstats
path: root/test/ExecutionEngine/OrcLazy/anonymous_globals.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/ExecutionEngine/OrcLazy/anonymous_globals.ll')
-rw-r--r--test/ExecutionEngine/OrcLazy/anonymous_globals.ll18
1 files changed, 18 insertions, 0 deletions
diff --git a/test/ExecutionEngine/OrcLazy/anonymous_globals.ll b/test/ExecutionEngine/OrcLazy/anonymous_globals.ll
new file mode 100644
index 0000000..c4c09a0
--- /dev/null
+++ b/test/ExecutionEngine/OrcLazy/anonymous_globals.ll
@@ -0,0 +1,18 @@
+; RUN: lli -jit-kind=orc-lazy %s
+
+define private void @0() {
+entry:
+ ret void
+}
+
+define private void @"\01L_foo"() {
+entry:
+ ret void
+}
+
+define i32 @main(i32 %argc, i8** nocapture readnone %argv) {
+entry:
+ call void @0()
+ tail call void @"\01L_foo"()
+ ret i32 0
+}