[PATCH 096/188] adding call_indirect tests

From 822682fb22b772542c7435477137b6fc387fcb99 Mon Sep 17 00:00:00 2001
From: Dmitry Boyarintsev <skalogryz.lists@gmail.com>
Date: Mon, 16 Mar 2020 16:30:09 -0400

git-svn-id: branches/wasm@46092 -
This commit is contained in:
nickysn 2020-08-03 13:00:37 +00:00
parent 09aa188cc3
commit 1007ceaf59
3 changed files with 22 additions and 0 deletions

2
.gitattributes vendored
View File

@ -18981,6 +18981,8 @@ utils/wasmbin/parseutils.pas svneol=native#text/plain
utils/wasmbin/testscan/asmsym1.wat svneol=native#text/plain
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/import1.wat svneol=native#text/plain
utils/wasmbin/testscan/inst_const_f32.wat svneol=native#text/plain
utils/wasmbin/testscan/inst_const_f32_neg.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 0 ;; calling $add
call_indirect (type 0) ;; type 0 (the only type used in this function)
)
)

View File

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