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.c117
1 files changed, 4 insertions, 113 deletions
diff --git a/test/example/c-api-kitchen-sink.c b/test/example/c-api-kitchen-sink.c
index 1b78ea1e7..5fb71b4d6 100644
--- a/test/example/c-api-kitchen-sink.c
+++ b/test/example/c-api-kitchen-sink.c
@@ -1170,82 +1170,17 @@ void test_core() {
makeInt32(module, 2)),
// Strings
BinaryenStringNew(module,
- BinaryenStringNewUTF8(),
- makeInt32(module, 0),
- makeInt32(module, 0),
- 0,
- 0,
- false),
- BinaryenStringNew(module,
- BinaryenStringNewUTF8(),
- makeInt32(module, 0),
- makeInt32(module, 0),
- 0,
- 0,
- true),
- BinaryenStringNew(module,
- BinaryenStringNewWTF8(),
- makeInt32(module, 0),
- makeInt32(module, 0),
- 0,
- 0,
- false),
- BinaryenStringNew(module,
- BinaryenStringNewLossyUTF8(),
- makeInt32(module, 0),
- makeInt32(module, 0),
- 0,
- 0,
- false),
- BinaryenStringNew(module,
- BinaryenStringNewWTF16(),
- makeInt32(module, 0),
- makeInt32(module, 0),
- 0,
- 0,
- false),
- BinaryenStringNew(module,
- BinaryenStringNewUTF8Array(),
- BinaryenGlobalGet(module, "i8Array-global", i8Array),
- 0,
- makeInt32(module, 0),
- makeInt32(module, 0),
- false),
- BinaryenStringNew(module,
- BinaryenStringNewUTF8Array(),
- BinaryenGlobalGet(module, "i8Array-global", i8Array),
- 0,
- makeInt32(module, 0),
- makeInt32(module, 0),
- true),
- BinaryenStringNew(module,
- BinaryenStringNewWTF8Array(),
- BinaryenGlobalGet(module, "i8Array-global", i8Array),
- 0,
- makeInt32(module, 0),
- makeInt32(module, 0),
- false),
- BinaryenStringNew(module,
BinaryenStringNewLossyUTF8Array(),
BinaryenGlobalGet(module, "i8Array-global", i8Array),
- 0,
- makeInt32(module, 0),
makeInt32(module, 0),
- false),
+ makeInt32(module, 0)),
BinaryenStringNew(module,
BinaryenStringNewWTF16Array(),
BinaryenGlobalGet(module, "i16Array-global", i8Array),
- 0,
- makeInt32(module, 0),
makeInt32(module, 0),
- false),
- BinaryenStringNew(module,
- BinaryenStringNewFromCodePoint(),
- makeInt32(module, 1),
- 0,
- 0,
- 0,
- false),
+ makeInt32(module, 0)),
+ BinaryenStringNew(
+ module, BinaryenStringNewFromCodePoint(), makeInt32(module, 1), 0, 0),
BinaryenStringConst(module, "hello world"),
BinaryenStringMeasure(
module,
@@ -1253,46 +1188,8 @@ void test_core() {
BinaryenGlobalGet(module, "string-global", BinaryenTypeStringref())),
BinaryenStringMeasure(
module,
- BinaryenStringMeasureWTF8(),
- BinaryenGlobalGet(module, "string-global", BinaryenTypeStringref())),
- BinaryenStringMeasure(
- module,
BinaryenStringMeasureWTF16(),
BinaryenGlobalGet(module, "string-global", BinaryenTypeStringref())),
- BinaryenStringMeasure(
- module,
- BinaryenStringMeasureIsUSV(),
- BinaryenGlobalGet(module, "string-global", BinaryenTypeStringref())),
- BinaryenStringEncode(
- module,
- BinaryenStringEncodeUTF8(),
- BinaryenGlobalGet(module, "string-global", BinaryenTypeStringref()),
- makeInt32(module, 0),
- 0),
- BinaryenStringEncode(
- module,
- BinaryenStringEncodeLossyUTF8(),
- BinaryenGlobalGet(module, "string-global", BinaryenTypeStringref()),
- makeInt32(module, 0),
- 0),
- BinaryenStringEncode(
- module,
- BinaryenStringEncodeWTF8(),
- BinaryenGlobalGet(module, "string-global", BinaryenTypeStringref()),
- makeInt32(module, 0),
- 0),
- BinaryenStringEncode(
- module,
- BinaryenStringEncodeWTF16(),
- BinaryenGlobalGet(module, "string-global", BinaryenTypeStringref()),
- makeInt32(module, 0),
- 0),
- BinaryenStringEncode(
- module,
- BinaryenStringEncodeUTF8Array(),
- BinaryenGlobalGet(module, "string-global", BinaryenTypeStringref()),
- BinaryenGlobalGet(module, "i8Array-global", i8Array),
- makeInt32(module, 0)),
BinaryenStringEncode(
module,
BinaryenStringEncodeLossyUTF8Array(),
@@ -1301,12 +1198,6 @@ void test_core() {
makeInt32(module, 0)),
BinaryenStringEncode(
module,
- BinaryenStringEncodeWTF8Array(),
- BinaryenGlobalGet(module, "string-global", BinaryenTypeStringref()),
- BinaryenGlobalGet(module, "i8Array-global", i8Array),
- makeInt32(module, 0)),
- BinaryenStringEncode(
- module,
BinaryenStringEncodeWTF16Array(),
BinaryenGlobalGet(module, "string-global", BinaryenTypeStringref()),
BinaryenGlobalGet(module, "i16Array-global", i16Array),