2018-05-05 09:23:07 +08:00
|
|
|
; RUN: llc -filetype=obj %s -o %t.main.o
|
|
|
|
; RUN: lld -flavor wasm -o %t.wasm %t.main.o 2>&1 | FileCheck %s -check-prefix=CHECK-WARN
|
|
|
|
; RUN: not lld -flavor wasm --fatal-warnings -o %t.wasm %t.main.o 2>&1 | FileCheck %s -check-prefix=CHECK-FATAL
|
|
|
|
|
|
|
|
; CHECK-WARN: warning: Function type mismatch: _start
|
|
|
|
; CHECK-FATAL: error: Function type mismatch: _start
|
|
|
|
|
2018-05-11 01:59:41 +08:00
|
|
|
target triple = "wasm32-unknown-unknown"
|
2018-05-05 09:23:07 +08:00
|
|
|
|
|
|
|
define hidden i32 @_start(i32 %arg) local_unnamed_addr {
|
|
|
|
entry:
|
|
|
|
ret i32 %arg
|
|
|
|
}
|
|
|
|
|