diff options
Diffstat (limited to 'test/wasm2js/dynamicLibrary.wast')
-rw-r--r-- | test/wasm2js/dynamicLibrary.wast | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/test/wasm2js/dynamicLibrary.wast b/test/wasm2js/dynamicLibrary.wast new file mode 100644 index 000000000..28175633c --- /dev/null +++ b/test/wasm2js/dynamicLibrary.wast @@ -0,0 +1,19 @@ +(module + (type $FUNCSIG$vi (func (param i32))) + (type $FUNCSIG$ii (func (param i32) (result i32))) + + (import "env" "memory" (memory $import$memory 256 256)) + (import "env" "memoryBase" (global $import$memoryBase i32)) + (data (global.get $import$memoryBase) "dynamic data") + + (table 10 10 funcref) + (import "env" "tableBase" (global $import$tableBase i32)) + (elem (global.get $import$tableBase) $foo $bar) + + (export "baz" (func $baz)) + (export "tab" (table 0)) + + (func $foo) + (func $bar) + (func $baz) +) |