summaryrefslogtreecommitdiff
path: root/test/example/c-api-kitchen-sink.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/example/c-api-kitchen-sink.c')
-rw-r--r--test/example/c-api-kitchen-sink.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/example/c-api-kitchen-sink.c b/test/example/c-api-kitchen-sink.c
index 327e20e1e..fb3fc87b0 100644
--- a/test/example/c-api-kitchen-sink.c
+++ b/test/example/c-api-kitchen-sink.c
@@ -1032,6 +1032,13 @@ void test_core() {
const char* table = BinaryenTableSizeGetTable(tablesize);
BinaryenTableSizeSetTable(tablesize, table);
+ BinaryenExpressionRef valueExpr =
+ BinaryenRefNull(module, BinaryenTypeFuncref());
+ BinaryenExpressionRef sizeExpr = makeInt32(module, 0);
+ BinaryenExpressionRef growExpr =
+ BinaryenTableGrow(module, "0", valueExpr, sizeExpr);
+ BinaryenExpressionPrint(growExpr);
+
// Memory. One per module
const char* segments[] = {"hello, world", "I am passive"};