llvm-project/lld/test/wasm/entry-signature.ll
Sam Clegg 65d6380cd6 [WebAssembly] Allow signautre of entry function to be flexible
Since we a no longer using this function for the wasm start
section we don't actually care what its signature is.

Differential Revision: https://reviews.llvm.org/D46594

llvm-svn: 332308
2018-05-14 23:01:16 +00:00

11 lines
255 B
LLVM

; Verify that the entry point signauture can be flexible.
; RUN: llc -filetype=obj %s -o %t.o
; RUN: wasm-ld -o %t1.wasm %t.o
target triple = "wasm32-unknown-unknown-wasm"
define hidden i32 @_start(i32, i64) local_unnamed_addr #0 {
entry:
ret i32 0
}