[PATCH 120/188] adding test call_indirect using index reference

From 774240f85f8bfaa9b94307a74a6771807963231d Mon Sep 17 00:00:00 2001
From: Dmitry Boyarintsev <skalogryz.lists@gmail.com>
Date: Mon, 23 Mar 2020 15:24:28 -0400

git-svn-id: branches/wasm@46116 -
This commit is contained in:
nickysn 2020-08-03 13:01:13 +00:00
parent 7f6bc39369
commit 0dad8b4b3d
3 changed files with 25 additions and 0 deletions

2
.gitattributes vendored
View File

@ -18983,6 +18983,8 @@ utils/wasmbin/testscan/asmsym2.wat svneol=native#text/plain
utils/wasmbin/testscan/asmsym3.wat svneol=native#text/plain
utils/wasmbin/testscan/call_indirect1.wat svneol=native#text/plain
utils/wasmbin/testscan/call_indirect2.wat svneol=native#text/plain
utils/wasmbin/testscan/call_indirect3.wat svneol=native#text/plain
utils/wasmbin/testscan/call_indirect4.wat svneol=native#text/plain
utils/wasmbin/testscan/elem1.wat svneol=native#text/plain
utils/wasmbin/testscan/elem2.wat svneol=native#text/plain
utils/wasmbin/testscan/import1.wat svneol=native#text/plain

View File

@ -0,0 +1,10 @@
(module
(func $add (result i64)
i64.const 13
)
(table 0 anyfunc)
(func $test (result i64)
i32.const $add ;; calling $add
call_indirect (type 0) ;; type 0 (the only type used in this function)
)
)

View File

@ -0,0 +1,13 @@
(module
(func $add (result i64)
i64.const 13
)
(func $sub (result i64)
i64.const 4
)
(table 0 anyfunc)
(func $test (result i64)
i32.const $sub ;; calling $add
call_indirect (type 0) ;; type 0 (the only type used in this function)
)
)