diff options
author | Daniel Wirtz <dcode@dcode.io> | 2018-01-19 21:33:40 +0100 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2018-01-19 12:33:40 -0800 |
commit | 63ebdb6d360c6e96e6f0e10974dfd8c29baade73 (patch) | |
tree | 526afb88c93580658347ea3d6688b80a3faa7244 /test/example | |
parent | 3b1f2c488a1d3f392b2eba2ff08b621e3616783c (diff) | |
download | binaryen-63ebdb6d360c6e96e6f0e10974dfd8c29baade73.tar.gz binaryen-63ebdb6d360c6e96e6f0e10974dfd8c29baade73.tar.bz2 binaryen-63ebdb6d360c6e96e6f0e10974dfd8c29baade73.zip |
Also clear imports and exports maps in BinaryenModuleDispose (#1372)
fixes #1369
* Update binaries and kitchen-sink test
Diffstat (limited to 'test/example')
-rw-r--r-- | test/example/c-api-kitchen-sink.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/example/c-api-kitchen-sink.txt b/test/example/c-api-kitchen-sink.txt index a41a364b3..15a0ebe37 100644 --- a/test/example/c-api-kitchen-sink.txt +++ b/test/example/c-api-kitchen-sink.txt @@ -1988,7 +1988,7 @@ int main() { BinaryenType paramTypes[] = { 1 }; functionTypes[1] = BinaryenAddFunctionType(the_module, "vi", 0, paramTypes, 1); } - imports[1] = BinaryenAddFunctionImport(the_module, "check", "module", "check", functionTypes[1]); + imports[0] = BinaryenAddFunctionImport(the_module, "check", "module", "check", functionTypes[1]); the_relooper = RelooperCreate(); expressions[1] = BinaryenConst(the_module, BinaryenLiteralInt32(1337)); { |