aboutsummaryrefslogtreecommitdiff
path: root/llvm/test/ExecutionEngine/MCJIT/hello2.ll
blob: 48806682a38adaf94efc8621f598222e0b600208 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
; RUN: %lli -jit-kind=mcjit %s > /dev/null
; RUN: %lli %s > /dev/null

@X = global i32 7		; <ptr> [#uses=0]
@msg = internal global [13 x i8] c"Hello World\0A\00"		; <ptr> [#uses=1]

declare void @printf(ptr, ...)

define void @bar() {
	call void (ptr, ...) @printf( ptr @msg )
	ret void
}

define i32 @main() {
	call void @bar( )
	ret i32 0
}