From 1e783f3e96f904b88b692522de04f786feaf41a0 Mon Sep 17 00:00:00 2001 From: Alon Zakai Date: Tue, 11 Oct 2016 14:40:23 -0700 Subject: allow a maximum 0 size for a table --- test/empty_table.wast | 4 ++++ test/empty_table.wast.fromBinary | 5 +++++ test/empty_table.wast.fromBinary.noDebugInfo | 5 +++++ 3 files changed, 14 insertions(+) create mode 100644 test/empty_table.wast create mode 100644 test/empty_table.wast.fromBinary create mode 100644 test/empty_table.wast.fromBinary.noDebugInfo (limited to 'test') diff --git a/test/empty_table.wast b/test/empty_table.wast new file mode 100644 index 000000000..17ce9d6b2 --- /dev/null +++ b/test/empty_table.wast @@ -0,0 +1,4 @@ +(module + (table 0 0 anyfunc) + (memory $0 0) +) diff --git a/test/empty_table.wast.fromBinary b/test/empty_table.wast.fromBinary new file mode 100644 index 000000000..219d2388c --- /dev/null +++ b/test/empty_table.wast.fromBinary @@ -0,0 +1,5 @@ +(module + (table 0 0 anyfunc) + (memory $0 0) +) + diff --git a/test/empty_table.wast.fromBinary.noDebugInfo b/test/empty_table.wast.fromBinary.noDebugInfo new file mode 100644 index 000000000..219d2388c --- /dev/null +++ b/test/empty_table.wast.fromBinary.noDebugInfo @@ -0,0 +1,5 @@ +(module + (table 0 0 anyfunc) + (memory $0 0) +) + -- cgit v1.2.3