summaryrefslogtreecommitdiffstats
path: root/test/CodeGen/X86/darwin-stub.ll
blob: 79eb31ac0fd47b11f9edb6482591aa1f2f1516fd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
; RUN: llvm-as < %s | llc -mtriple=i386-apple-darwin  |     grep stub
; RUN: llvm-as < %s | llc -mtriple=i386-apple-darwin9 | not grep stub

@"\01LC" = internal constant [13 x i8] c"Hello World!\00"		; <[13 x i8]*> [#uses=1]

define i32 @main() nounwind {
entry:
	%0 = tail call i32 @puts(i8* getelementptr ([13 x i8]* @"\01LC", i32 0, i32 0)) nounwind		; <i32> [#uses=0]
	ret i32 0
}

declare i32 @puts(i8*)
OpenPOWER on IntegriCloud