summaryrefslogtreecommitdiff
path: root/test/example
diff options
context:
space:
mode:
Diffstat (limited to 'test/example')
-rw-r--r--test/example/c-api-kitchen-sink.c6
-rw-r--r--test/example/c-api-kitchen-sink.txt8
2 files changed, 7 insertions, 7 deletions
diff --git a/test/example/c-api-kitchen-sink.c b/test/example/c-api-kitchen-sink.c
index fa245c102..444ed9384 100644
--- a/test/example/c-api-kitchen-sink.c
+++ b/test/example/c-api-kitchen-sink.c
@@ -166,7 +166,7 @@ void test_core() {
BinaryenSwitch(module, switchValueNames, 1, "the-value", makeInt32(module, 0), makeInt32(module, 1)),
BinaryenSwitch(module, switchBodyNames, 1, "the-nothing", makeInt32(module, 2), NULL),
BinaryenUnary(module, BinaryenEqZInt32(), // check the output type of the call node
- BinaryenCall(module, "kitchen-sinker", callOperands4, 4, BinaryenInt32())
+ BinaryenCall(module, "kitchen()sinker", callOperands4, 4, BinaryenInt32())
),
BinaryenUnary(module, BinaryenEqZInt32(), // check the output type of the call node
BinaryenUnary(module,
@@ -202,7 +202,7 @@ void test_core() {
// Create the function
BinaryenType localTypes[] = { BinaryenInt32() };
- BinaryenFunctionRef sinker = BinaryenAddFunction(module, "kitchen-sinker", iiIfF, localTypes, 1, body);
+ BinaryenFunctionRef sinker = BinaryenAddFunction(module, "kitchen()sinker", iiIfF, localTypes, 1, body);
// Imports
@@ -212,7 +212,7 @@ void test_core() {
// Exports
- BinaryenAddExport(module, "kitchen-sinker", "kitchen_sinker");
+ BinaryenAddExport(module, "kitchen()sinker", "kitchen_sinker");
// Function table. One per module
BinaryenFunctionRef functions[] = { sinker };
diff --git a/test/example/c-api-kitchen-sink.txt b/test/example/c-api-kitchen-sink.txt
index 9e2e62aad..42610c2cc 100644
--- a/test/example/c-api-kitchen-sink.txt
+++ b/test/example/c-api-kitchen-sink.txt
@@ -17,9 +17,9 @@ BinaryenFloat64: 4
(type $v (func))
(type $3 (func))
(import $an-imported "module" "base" (param i32 f64) (result f32))
- (export "kitchen_sinker" $kitchen-sinker)
- (table $kitchen-sinker)
- (func $kitchen-sinker (type $iiIfF) (param $0 i32) (param $1 i64) (param $2 f32) (param $3 f64) (result i32)
+ (export "kitchen_sinker" "$kitchen()sinker")
+ (table "$kitchen()sinker")
+ (func "$kitchen()sinker" (type $iiIfF) (param $0 i32) (param $1 i64) (param $2 f32) (param $3 f64) (result i32)
(local $4 i32)
(block $the-body
(block $the-nothing
@@ -299,7 +299,7 @@ BinaryenFloat64: 4
(i32.const 2)
)
(i32.eqz
- (call $kitchen-sinker
+ (call "$kitchen()sinker"
(i32.const 13)
(i64.const 37)
(f32.const 1.2999999523162842)