aboutsummaryrefslogtreecommitdiff
path: root/llvm/test/tools/llvm-readobj/wasm/Inputs/trivial.ll
blob: 0477a31096d613590da5302c5e6942665e8de74f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
; Input used for generating checked-in binaries (trivial.obj.*)
; llc -mtriple=wasm32-unknown-unknown trivial.ll -filetype=obj -o trivial.obj.wasm

@.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(...)