xref: /llvm-project/llvm/test/tools/llvm-readobj/MachO/Inputs/trivial.ll (revision a273c40820f78d8b08e411897eee84dbda983488)
1f65ab626SGeorgii Rymar; Input used for generating checked-in binaries (trivial.obj.*)
2f65ab626SGeorgii Rymar; llc -mtriple=i386-apple-darwin10 trivial.ll -filetype=obj -o trivial.obj.macho-i386 -relocation-model=pic
3f65ab626SGeorgii Rymar; llc -mtriple=x86_64-apple-darwin10 trivial.ll -filetype=obj -o trivial.obj.macho-x86-64 -relocation-model=pic
4f65ab626SGeorgii Rymar
5f65ab626SGeorgii Rymar@.str = private unnamed_addr constant [13 x i8] c"Hello World\0A\00", align 1
6f65ab626SGeorgii Rymar
7f65ab626SGeorgii Rymardefine i32 @main() nounwind {
8f65ab626SGeorgii Rymarentry:
9*a273c408SFangrui Song  %call = tail call i32 @puts(ptr @.str) nounwind
10*a273c408SFangrui Song  tail call void @SomeOtherFunction() nounwind
11f65ab626SGeorgii Rymar  ret i32 0
12f65ab626SGeorgii Rymar}
13f65ab626SGeorgii Rymar
14*a273c408SFangrui Songdeclare i32 @puts(ptr nocapture) nounwind
15f65ab626SGeorgii Rymar
16f65ab626SGeorgii Rymardeclare void @SomeOtherFunction(...)
17