summaryrefslogtreecommitdiff
path: root/test/table-import.wast
diff options
context:
space:
mode:
authorDerek Schuff <dschuff@chromium.org>2016-10-11 09:15:05 -0700
committerGitHub <noreply@github.com>2016-10-11 09:15:05 -0700
commit56c6ca407f3232ede398b78e7f284f6ed80c9f00 (patch)
tree8ecc9eac4788d085a798678cba81ef0a5c11dbe7 /test/table-import.wast
parent2a8fea01444dac7d95eea64c2d49b86bb58713d3 (diff)
downloadbinaryen-56c6ca407f3232ede398b78e7f284f6ed80c9f00.tar.gz
binaryen-56c6ca407f3232ede398b78e7f284f6ed80c9f00.tar.bz2
binaryen-56c6ca407f3232ede398b78e7f284f6ed80c9f00.zip
Don't create table sections for imported tables (#756)
Previously the Print pass searched the imports for a table import and skipped printing a local table declaration if found. Instead this refactors to make importation explicit, and also create importation records (previously we were inconsistent about whether such records were created in the IR depending on the wast syntax).
Diffstat (limited to 'test/table-import.wast')
-rw-r--r--test/table-import.wast9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/table-import.wast b/test/table-import.wast
new file mode 100644
index 000000000..6d40941e2
--- /dev/null
+++ b/test/table-import.wast
@@ -0,0 +1,9 @@
+(module
+ (type $0 (func))
+ (import "env" "table" (table 1 1 anyfunc))
+ (elem (i32.const 0) $foo)
+ (memory $0 0)
+ (func $foo (type $0)
+ (nop)
+ )
+)