mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-25 20:23:11 +01:00
bb2cd15df7
llvm-svn: 17536
23 lines
320 B
LLVM
23 lines
320 B
LLVM
; RUN: llvm-as -f %s -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 %printf([13 x sbyte]* %msg)
|
|
ret void
|
|
}
|
|
|
|
int %main() {
|
|
call void %bar()
|
|
ret int 0
|
|
}
|
|
|