20 lines · plain
1# RUN: llvm-mc -filetype=obj -triple=wasm32-unknown-unknown -o %t.o %s2# RUN: llvm-mc -filetype=obj -triple=wasm32-unknown-unknown %p/Inputs/ret32.s -o %t.ret32.o3# RUN: wasm-ld -o %t.wasm %t.o %t.ret32.o 2>&1 | FileCheck %s -check-prefix=CHECK-WARN4# RUN: not wasm-ld --fatal-warnings -o %t.wasm %t.o %t.ret32.o 2>&1 | FileCheck %s -check-prefix=CHECK-FATAL5 6# CHECK-WARN: warning: function signature mismatch: ret327# CHECK-FATAL: error: function signature mismatch: ret328 9.functype ret32 (f32, i64, i32) -> (i32)10 11.globl _start12_start:13 .functype _start () -> ()14 f32.const 1.015 i64.const 216 i32.const 317 call ret3218 drop19 end_function20