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, 3 insertions, 3 deletions
diff --git a/test/example/c-api-kitchen-sink.c b/test/example/c-api-kitchen-sink.c index c2c5d6e31..d3368a6b1 100644 --- a/test/example/c-api-kitchen-sink.c +++ b/test/example/c-api-kitchen-sink.c @@ -471,7 +471,7 @@ void test_core() { funcrefExpr = BinaryenRefFunc(module, "kitchen()sinker", BinaryenTypeFuncref()); BinaryenExpressionRef i31refExpr = - BinaryenI31New(module, makeInt32(module, 1)); + BinaryenRefI31(module, makeInt32(module, 1)); // Tags BinaryenAddTag(module, "a-tag", BinaryenTypeInt32(), BinaryenTypeNone()); @@ -1101,9 +1101,9 @@ void test_core() { BinaryenMemorySize(module, "0", false), BinaryenMemoryGrow(module, makeInt32(module, 0), "0", false), // GC - BinaryenI31New(module, makeInt32(module, 0)), + BinaryenRefI31(module, makeInt32(module, 0)), BinaryenI31Get(module, i31refExpr, 1), - BinaryenI31Get(module, BinaryenI31New(module, makeInt32(module, 2)), 0), + BinaryenI31Get(module, BinaryenRefI31(module, makeInt32(module, 2)), 0), BinaryenRefTest( module, BinaryenGlobalGet(module, "i8Array-global", i8Array), i8Array), BinaryenRefCast( |