summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2016-10-11 14:40:23 -0700
committerAlon Zakai <alonzakai@gmail.com>2016-10-11 15:01:04 -0700
commit1e783f3e96f904b88b692522de04f786feaf41a0 (patch)
tree1733305ab97e113b137107d7711c56c0a3652310 /test
parenta3dc8bf8cba7cd1b5ece8abf0489a9dcacfa3f2e (diff)
downloadbinaryen-1e783f3e96f904b88b692522de04f786feaf41a0.tar.gz
binaryen-1e783f3e96f904b88b692522de04f786feaf41a0.tar.bz2
binaryen-1e783f3e96f904b88b692522de04f786feaf41a0.zip
allow a maximum 0 size for a table
Diffstat (limited to 'test')
-rw-r--r--test/empty_table.wast4
-rw-r--r--test/empty_table.wast.fromBinary5
-rw-r--r--test/empty_table.wast.fromBinary.noDebugInfo5
3 files changed, 14 insertions, 0 deletions
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)
+)
+