1 ; Input used for generating checked-in binaries (trivial.obj.*)
2 ; llc -mtriple=wasm32-unknown-unknown trivial.ll -filetype=obj -o trivial.obj.wasm
4 @.str = private unnamed_addr constant [13 x i8] c"Hello World\0A\00", align 1
6 define i32 @main() nounwind {
8 %call = tail call i32 @puts(ptr @.str) nounwind
9 tail call void @SomeOtherFunction() nounwind
13 declare i32 @puts(ptr nocapture) nounwind
15 declare void @SomeOtherFunction(...)
18 @llvm.used = appending global [1 x ptr] [ptr @var], section "llvm.metadata"
19 @llvm.global_ctors = appending global [1 x { i32, ptr, ptr }] [{ i32, ptr, ptr } { i32 65535, ptr null, ptr null }]