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.c6
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 8248dea52..4e4944cda 100644
--- a/test/example/c-api-kitchen-sink.c
+++ b/test/example/c-api-kitchen-sink.c
@@ -202,7 +202,7 @@ void test_core() {
BinaryenUnary(module, BinaryenEqZInt32(), // check the output type of the call node
BinaryenUnary(module,
BinaryenTruncSFloat32ToInt32(),
- BinaryenCallImport(module, "an-imported", callOperands2, 2, BinaryenTypeFloat32())
+ BinaryenCall(module, "an-imported", callOperands2, 2, BinaryenTypeFloat32())
)
),
BinaryenUnary(module, BinaryenEqZInt32(), // check the output type of the call node
@@ -301,7 +301,7 @@ void test_unreachable() {
BinaryenExpressionRef makeCallCheck(BinaryenModuleRef module, int x) {
BinaryenExpressionRef callOperands[] = { makeInt32(module, x) };
- return BinaryenCallImport(module, "check", callOperands, 1, BinaryenTypeNone());
+ return BinaryenCall(module, "check", callOperands, 1, BinaryenTypeNone());
}
void test_relooper() {
@@ -543,7 +543,7 @@ void test_interpret() {
BinaryenFunctionTypeRef v = BinaryenAddFunctionType(module, "v", BinaryenTypeNone(), NULL, 0);
BinaryenExpressionRef callOperands[] = { makeInt32(module, 1234) };
- BinaryenExpressionRef call = BinaryenCallImport(module, "print-i32", callOperands, 1, BinaryenTypeNone());
+ BinaryenExpressionRef call = BinaryenCall(module, "print-i32", callOperands, 1, BinaryenTypeNone());
BinaryenFunctionRef starter = BinaryenAddFunction(module, "starter", v, NULL, 0, call);
BinaryenSetStart(module, starter);