diff options
Diffstat (limited to 'llvm/test/ExecutionEngine/hello2.ll')
-rw-r--r-- | llvm/test/ExecutionEngine/hello2.ll | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/llvm/test/ExecutionEngine/hello2.ll b/llvm/test/ExecutionEngine/hello2.ll new file mode 100644 index 00000000000..b186c52e2b5 --- /dev/null +++ b/llvm/test/ExecutionEngine/hello2.ll @@ -0,0 +1,22 @@ +; RUN: llvm-upgrade < %s | llvm-as -f -o %t.bc +; RUN: lli %t.bc > /dev/null + + +%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([13 x sbyte]*,...)* %printf([13 x sbyte]* %msg) + ret void +} + +int %main() { + call void %bar() + ret int 0 +} + |