Debian Codegraph @

tests/cli/folding/fold-unreachable.wast

raw
1 ;; RUN: wast --assert default,snapshot-folded --snapshot tests/snapshots %
2
3 ;;; WABT fold-unreachable.txt test (Copyright 2016- WebAssembly Community Group participants)
4 (module
5 (func (result i32)
6 i32.const 1
7 unreachable
8 i32.add)
9
10 (func
11 br 0
12 drop)
13
14 (func
15 block
16 block
17 block
18 i32.const 1
19 br_table 0 1 2 0
20 i32.const 2
21 i32.div_s
22 return
23 end
24 end
25 end)
26
27 (func (result i32)
28 i32.const 0
29 return
30 i32.eqz))