aboutsummaryrefslogtreecommitdiffstats
path: root/test/ExecutionEngine/hello2.ll
blob: eaeb238ac05cb9243fbd6afaee266867cb74163e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
; 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
}