Debian Codegraph @

tests/cli/folding/fold-call.wast

raw
1 ;; RUN: wast --assert default,snapshot-folded --snapshot tests/snapshots %
2
3 ;;; WABT fold-call.wat test (Copyright 2016- WebAssembly Community Group participants)
4 (module
5 (type $i_i (func (param i32) (result i32)))
6
7 (func $i_i (type $i_i)
8 i32.const 1)
9
10 (func $if_f (param i32 f32) (result f32)
11 f32.const 0)
12
13 (func $ffff_v (param f32 f32 f32 f32))
14
15 (func $fold-call (result i32)
16 i32.const 1
17 call $i_i
18 drop
19 i32.const 2
20 call $i_i)
21
22 (func $fold-call-2
23 f32.const 0
24 f32.const 1
25 f32.const 2
26 i32.const 3
27 f32.const 4
28 call $if_f
29 call $ffff_v)
30
31 (table funcref (elem $i_i $if_f))
32 (func $fold-call-indirect (result i32)
33 i32.const 1
34 i32.const 2
35 call_indirect (type $i_i))
36 )