diff options
Diffstat (limited to 'test/example/c-api-kitchen-sink.c')
-rw-r--r-- | test/example/c-api-kitchen-sink.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/test/example/c-api-kitchen-sink.c b/test/example/c-api-kitchen-sink.c index 1e762579e..327e20e1e 100644 --- a/test/example/c-api-kitchen-sink.c +++ b/test/example/c-api-kitchen-sink.c @@ -1026,7 +1026,11 @@ void test_core() { BinaryenExpressionPrint(funcrefExpr2); - BinaryenExpressionPrint(BinaryenTableSize(module, "0")); + BinaryenExpressionRef tablesize = BinaryenTableSize(module, "0"); + BinaryenExpressionPrint(tablesize); + + const char* table = BinaryenTableSizeGetTable(tablesize); + BinaryenTableSizeSetTable(tablesize, table); // Memory. One per module |