blob: 4df27326179bee859827c2c5147679cd78067f01 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
;;; TOOL: wat2wasm
;;; ERROR: 1
(module
(func
block $b
i32.const 0
if (result f32)
nop
else
f32.const 0
end
drop
end))
(;; STDERR ;;;
out/test/typecheck/bad-if-value-void.txt:8:9: error: type mismatch in `if true` branch, expected [f32] but got []
nop
^^^
;;; STDERR ;;)
|