aboutsummaryrefslogtreecommitdiffstats
path: root/test/ExecutionEngine/hello.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/ExecutionEngine/hello.ll')
-rw-r--r--test/ExecutionEngine/hello.ll14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/ExecutionEngine/hello.ll b/test/ExecutionEngine/hello.ll
new file mode 100644
index 0000000..ea2f9a4
--- /dev/null
+++ b/test/ExecutionEngine/hello.ll
@@ -0,0 +1,14 @@
+; RUN: llvm-upgrade < %s | llvm-as -f -o %t.bc
+; RUN: lli %t.bc > /dev/null
+
+%.LC0 = internal global [12 x sbyte] c"Hello World\00"
+
+implementation
+
+declare int %puts(sbyte*)
+
+int %main() {
+ %reg210 = call int %puts( sbyte* getelementptr ([12 x sbyte]* %.LC0, long 0, long 0) )
+ ret int 0
+}
+