summaryrefslogtreecommitdiffstats
path: root/lld/test/wasm/fatal-warnings.ll
blob: f3f1d3b64e4e2b345e9b0591067f616115642a84 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
; 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

target triple = "wasm32-unknown-unknown-wasm"

define hidden i32 @_start(i32 %arg) local_unnamed_addr {
entry:
  ret i32 %arg
}

OpenPOWER on IntegriCloud