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