| 1 |
;; RUN: wast --assert default,snapshot-folded --snapshot tests/snapshots % |
| 2 |
|
| 3 |
;;; WABT fold-tail-call.wat test (Copyright 2016- WebAssembly Community Group participants) |
| 4 |
(module |
| 5 |
(type $t (func)) |
| 6 |
(type $t2 (func (param f32 f32) (result f32))) |
| 7 |
(table 1 funcref) |
| 8 |
|
| 9 |
(func $f |
| 10 |
return_call $f) |
| 11 |
|
| 12 |
(func $f2 (param f32 f32) (result f32) |
| 13 |
f32.const 0 |
| 14 |
f32.const 0 |
| 15 |
return_call $f2) |
| 16 |
|
| 17 |
(func |
| 18 |
i32.const 0 |
| 19 |
return_call_indirect (type $t)) |
| 20 |
|
| 21 |
(func (result f32) |
| 22 |
f32.const 0 |
| 23 |
f32.const 0 |
| 24 |
i32.const 0 |
| 25 |
return_call_indirect (type $t2)) |
| 26 |
) |