Debian Codegraph @

tests/cli/folding/fold-multi.wast

raw
1 ;; RUN: wast --assert default,snapshot-folded --snapshot tests/snapshots %
2
3 ;;; WABT fold-multi.wat test (Copyright 2016- WebAssembly Community Group participants)
4 (module
5 (func $dup (result i32 i32)
6 i32.const 0
7 i32.const 1
8 )
9
10 (func $fold-two (result i32)
11 call $dup
12 i32.add
13 )
14
15 (func $cant-fold (result i32)
16 call $dup
17 i32.const 1
18 i32.add
19 drop
20 )
21
22 (func $partial-fold (result i32)
23 call $dup
24 call $dup
25 i32.add
26 i32.sub
27 drop
28 )
29 )