aboutsummaryrefslogtreecommitdiff
path: root/test/ExecutionEngine/hello2.ll
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-07-27 00:28:10 +0000
committerChris Lattner <sabre@nondot.org>2003-07-27 00:28:10 +0000
commit699104633afb16c22ce3cd8fe1dc8054aacdc613 (patch)
tree33ba8d6f7a57a39efa9c4468480ea5ba66d29c58 /test/ExecutionEngine/hello2.ll
parentd281de21815d4766cf4960ad2ef075bee3beac0b (diff)
Somehow "simplest" test became a hello world test. Rectify this.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7353 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/ExecutionEngine/hello2.ll')
-rw-r--r--test/ExecutionEngine/hello2.ll19
1 files changed, 19 insertions, 0 deletions
diff --git a/test/ExecutionEngine/hello2.ll b/test/ExecutionEngine/hello2.ll
new file mode 100644
index 0000000000..48d7688bcc
--- /dev/null
+++ b/test/ExecutionEngine/hello2.ll
@@ -0,0 +1,19 @@
+
+%X = global int 7
+%msg = internal global [13 x sbyte] c"Hello World\0A\00"
+
+
+implementation
+
+declare void %printf([13 x sbyte]*)
+
+void %bar() {
+ call void %printf([13 x sbyte]* %msg)
+ ret void
+}
+
+int %main() {
+ call void %bar()
+ ret int 0
+}
+