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.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/test/example/c-api-kitchen-sink.c b/test/example/c-api-kitchen-sink.c
index 0dadeef1d..de105d239 100644
--- a/test/example/c-api-kitchen-sink.c
+++ b/test/example/c-api-kitchen-sink.c
@@ -1102,9 +1102,8 @@ void test_core() {
BinaryenI31New(module, makeInt32(module, 0)),
BinaryenI31Get(module, i31refExpr, 1),
BinaryenI31Get(module, BinaryenI31New(module, makeInt32(module, 2)), 0),
- BinaryenRefTest(module,
- BinaryenGlobalGet(module, "i8Array-global", i8Array),
- BinaryenTypeGetHeapType(i8Array)),
+ BinaryenRefTest(
+ module, BinaryenGlobalGet(module, "i8Array-global", i8Array), i8Array),
BinaryenRefCast(
module, BinaryenGlobalGet(module, "i8Array-global", i8Array), i8Array),
BinaryenStructNew(module, 0, 0, BinaryenTypeGetHeapType(i32Struct)),