aboutsummaryrefslogtreecommitdiff
path: root/llvm/test/tools/llvm-readobj/COFF/Inputs/trivial.ll
blob: 2787d8d33fba8bb37e3a6803fea9176f83d5bc97 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
; Input used for generating checked-in binaries (trivial.obj.*)
; llc -mtriple=i386-pc-win32 trivial.ll -filetype=obj -o trivial.obj.coff-i386
; llc -mtriple=x86_64-pc-win32 trivial.ll -filetype=obj -o trivial.obj.coff-x86-64

@.str = private unnamed_addr constant [13 x i8] c"Hello World\0A\00", align 1

define i32 @main() nounwind {
entry:
  %call = tail call i32 @puts(ptr @.str) nounwind
  tail call void @SomeOtherFunction() nounwind
  ret i32 0
}

declare i32 @puts(ptr nocapture) nounwind

declare void @SomeOtherFunction(...)