summaryrefslogtreecommitdiff
path: root/test/passes/duplicate-function-elimination.wast
diff options
context:
space:
mode:
authorDerek Schuff <dschuff@chromium.org>2017-11-13 15:18:30 -0800
committerGitHub <noreply@github.com>2017-11-13 15:18:30 -0800
commitca09203416a556f0a895f6cfa32426bdd46f9824 (patch)
tree263697a28594c67424472a7410d256994476f4de /test/passes/duplicate-function-elimination.wast
parent20b8b02ff331f8b59d44e2a72ebd6f81e08f49ac (diff)
downloadbinaryen-ca09203416a556f0a895f6cfa32426bdd46f9824.tar.gz
binaryen-ca09203416a556f0a895f6cfa32426bdd46f9824.tar.bz2
binaryen-ca09203416a556f0a895f6cfa32426bdd46f9824.zip
Update call_indirect text syntax to match spec update (#1281)
Function type gets its own element rather than being a part of the call_indirect (see WebAssembly/spec#599)
Diffstat (limited to 'test/passes/duplicate-function-elimination.wast')
-rw-r--r--test/passes/duplicate-function-elimination.wast12
1 files changed, 6 insertions, 6 deletions
diff --git a/test/passes/duplicate-function-elimination.wast b/test/passes/duplicate-function-elimination.wast
index 2a01d61ec..b79032155 100644
--- a/test/passes/duplicate-function-elimination.wast
+++ b/test/passes/duplicate-function-elimination.wast
@@ -464,12 +464,12 @@
(table 2 2 anyfunc)
(elem (i32.const 0) $erase $other)
(func $erase (type $T)
- (call_indirect $T
+ (call_indirect (type $T)
(i32.const 0)
)
)
(func $other (type $T)
- (call_indirect $T
+ (call_indirect (type $T)
(i32.const 0)
)
)
@@ -480,12 +480,12 @@
(table 2 2 anyfunc)
(elem (i32.const 0) $keep2 $other)
(func $keep2 (type $T)
- (call_indirect $T
+ (call_indirect (type $T)
(i32.const 0)
)
)
(func $other (type $T)
- (call_indirect $T
+ (call_indirect (type $T)
(i32.const 1)
)
)
@@ -497,12 +497,12 @@
(table 2 2 anyfunc)
(elem (i32.const 0) $keep2 $other)
(func $keep2 (type $T)
- (call_indirect $T
+ (call_indirect (type $T)
(i32.const 0)
)
)
(func $other (type $T)
- (call_indirect $S
+ (call_indirect (type $S)
(i32.const 0)
)
)