summaryrefslogtreecommitdiff
path: root/test/multi-table.wast.fromBinary
diff options
context:
space:
mode:
authorAbbas Mashayekh <martianboy2005@gmail.com>2021-03-24 21:43:45 +0430
committerGitHub <noreply@github.com>2021-03-24 10:13:45 -0700
commitffac06650507ac413d60d72aadc1e33fb1f91ccf (patch)
treef581d02da66df8db2a775fc731d39baf15d96c82 /test/multi-table.wast.fromBinary
parent683c31381f5798016f683a6b42e2a8fad0f871cb (diff)
downloadbinaryen-ffac06650507ac413d60d72aadc1e33fb1f91ccf.tar.gz
binaryen-ffac06650507ac413d60d72aadc1e33fb1f91ccf.tar.bz2
binaryen-ffac06650507ac413d60d72aadc1e33fb1f91ccf.zip
[RT] Support expressions in element segments (#3666)
This PR adds support for `ref.null t` as a valid element segment item. The abbreviated format of `(elem ... func $f $g...)` is kept in both printing and binary emitting if all items are `ref.func`s. Public APIs aren't updated in this PR.
Diffstat (limited to 'test/multi-table.wast.fromBinary')
-rw-r--r--test/multi-table.wast.fromBinary5
1 files changed, 4 insertions, 1 deletions
diff --git a/test/multi-table.wast.fromBinary b/test/multi-table.wast.fromBinary
index 13604e69d..9918b6183 100644
--- a/test/multi-table.wast.fromBinary
+++ b/test/multi-table.wast.fromBinary
@@ -5,7 +5,10 @@
(table $t2 3 3 funcref)
(elem (table $t2) (i32.const 0) func $f)
(elem $activeNonZeroOffset (table $t2) (i32.const 1) func $f $g)
- (elem $passive func $f $g)
+ (table $t3 4 4 funcref)
+ (elem $e3-1 (table $t3) (i32.const 0) funcref (ref.func $f) (ref.null func))
+ (elem $e3-2 (table $t3) (i32.const 2) func $f $g)
+ (elem $passive funcref (ref.func $f) (ref.func $g) (ref.null func))
(elem declare func $h)
(func $f
(drop