summaryrefslogtreecommitdiff
path: root/test/example/c-api-kitchen-sink.c
diff options
context:
space:
mode:
authorNidin Vinayakan <nidinthb@gmail.com>2018-10-12 01:10:29 +0200
committerAlon Zakai <alonzakai@gmail.com>2018-10-11 16:10:29 -0700
commit230b9cd7f96eb3d7e35f07d4bb6f029264e6543c (patch)
treeeab77ec0c100ffb46aa8f07ce4c17b301499f530 /test/example/c-api-kitchen-sink.c
parent91ecfd0ac94791612af40a7acee5640d185a84a9 (diff)
downloadbinaryen-230b9cd7f96eb3d7e35f07d4bb6f029264e6543c.tar.gz
binaryen-230b9cd7f96eb3d7e35f07d4bb6f029264e6543c.tar.bz2
binaryen-230b9cd7f96eb3d7e35f07d4bb6f029264e6543c.zip
Shared memory support for add memory import and set memory functions. (#1686)
Diffstat (limited to 'test/example/c-api-kitchen-sink.c')
-rw-r--r--test/example/c-api-kitchen-sink.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/example/c-api-kitchen-sink.c b/test/example/c-api-kitchen-sink.c
index 25c33956b..0d9aea2ca 100644
--- a/test/example/c-api-kitchen-sink.c
+++ b/test/example/c-api-kitchen-sink.c
@@ -261,7 +261,7 @@ void test_core() {
const char* segments[] = { "hello, world" };
BinaryenExpressionRef segmentOffsets[] = { BinaryenConst(module, BinaryenLiteralInt32(10)) };
BinaryenIndex segmentSizes[] = { 12 };
- BinaryenSetMemory(module, 1, 256, "mem", segments, segmentOffsets, segmentSizes, 1);
+ BinaryenSetMemory(module, 1, 256, "mem", segments, segmentOffsets, segmentSizes, 1, 0);
// Start function. One per module