Debian Codegraph @

tests/cli/folding/fold-reference-types.wast

raw
1 ;; RUN: wast --assert default,snapshot-folded --snapshot tests/snapshots %
2
3 ;;; WABT fold-reference-types.wat test (Copyright 2016- WebAssembly Community Group participants)
4 (module
5 (table $t 1 externref)
6 (elem declare func 0)
7 (func
8 (local externref)
9
10 i32.const 0 table.get $t drop
11 i32.const 0 local.get 0 table.set $t
12 local.get 0 i32.const 0 table.grow $t drop
13 table.size $t drop
14 i32.const 0 local.get 0 i32.const 0 table.fill $t
15 ref.null extern drop
16 local.get 0 ref.is_null drop
17 ref.func 0 drop
18 )
19 )