summaryrefslogtreecommitdiff
path: root/test/lit/merge/table64.wat.second
diff options
context:
space:
mode:
authorAlon Zakai <azakai@google.com>2024-11-07 14:28:59 -0800
committerGitHub <noreply@github.com>2024-11-07 14:28:59 -0800
commit7a0e738e363d13880ec25018134e178d57c5ba6a (patch)
treea7567d6f7d460b87153f3a7c29e40777639a154f /test/lit/merge/table64.wat.second
parentd01620f88748825e136495824ce7f7312d90966d (diff)
downloadbinaryen-7a0e738e363d13880ec25018134e178d57c5ba6a.tar.gz
binaryen-7a0e738e363d13880ec25018134e178d57c5ba6a.tar.bz2
binaryen-7a0e738e363d13880ec25018134e178d57c5ba6a.zip
[wasm64] Fix copying of 64-bit tables, and fuzz them (#7065)
`ModuleUtils::copyTable` was not copying the `indexType` property.
Diffstat (limited to 'test/lit/merge/table64.wat.second')
-rw-r--r--test/lit/merge/table64.wat.second12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/lit/merge/table64.wat.second b/test/lit/merge/table64.wat.second
new file mode 100644
index 000000000..cbc5a78fb
--- /dev/null
+++ b/test/lit/merge/table64.wat.second
@@ -0,0 +1,12 @@
+;; A module with a wasm64 table. We must copy it properly when we merge.
+(module
+ (table $table i64 15 15 funcref)
+
+ (elem $0 (i64.const 0) $second)
+
+ (export "table" (table $table))
+
+ (func $second)
+)
+
+