summaryrefslogtreecommitdiff
path: root/test/example/c-api-multiple-tables.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/example/c-api-multiple-tables.c')
-rw-r--r--test/example/c-api-multiple-tables.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/example/c-api-multiple-tables.c b/test/example/c-api-multiple-tables.c
index f3a9ba8dd..7cd215bf9 100644
--- a/test/example/c-api-multiple-tables.c
+++ b/test/example/c-api-multiple-tables.c
@@ -64,6 +64,7 @@ int main() {
assert(strcmp(BinaryenTableGetName(t2), "t2") == 0);
BinaryenTableSetName(t2, "table2");
+ BinaryenModuleUpdateMaps(module);
assert(strcmp(BinaryenTableGetName(t2), "table2") == 0);
BinaryenElementSegmentSetTable(elem1, "table2");
assert(strcmp(BinaryenElementSegmentGetTable(elem1), "table2") == 0);