blob: 1a6a76298b23ee92efc6c640c23d79a47e975e08 [file] [log] [blame]
; Input used for generating checked-in binaries (trivial-object-test.*)
; llc -mtriple=wasm32-unknown-unknown trivial.ll -filetype=obj -o trivial-object-test.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(...)
@var = global i32 0
@llvm.used = appending global [1 x ptr] [ptr @var], section "llvm.metadata"
@llvm.global_ctors = appending global [1 x { i32, ptr, ptr }] [{ i32, ptr, ptr } { i32 65535, ptr null, ptr null }]