mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-22 23:49:29 +02:00
[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:
parent
09aa188cc3
commit
1007ceaf59
2
.gitattributes
vendored
2
.gitattributes
vendored
@ -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
|
||||
|
10
utils/wasmbin/testscan/call_indirect1.wat
Normal file
10
utils/wasmbin/testscan/call_indirect1.wat
Normal 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)
|
||||
)
|
||||
)
|
10
utils/wasmbin/testscan/call_indirect2.wat
Normal file
10
utils/wasmbin/testscan/call_indirect2.wat
Normal 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)
|
||||
)
|
||||
)
|
Loading…
Reference in New Issue
Block a user