1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-01 16:33:37 +01:00
llvm-mirror/test/ExecutionEngine/hello2.ll
2007-01-17 07:59:14 +00:00

23 lines
361 B
LLVM

; 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
}