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.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/example/c-api-kitchen-sink.c b/test/example/c-api-kitchen-sink.c
index d5681097c..bf80833a0 100644
--- a/test/example/c-api-kitchen-sink.c
+++ b/test/example/c-api-kitchen-sink.c
@@ -549,6 +549,14 @@ void test_core() {
1,
0,
"0");
+ BinaryenAddDataSegment(module, NULL, NULL, true, NULL, "data segment 2", 14);
+ BinaryenAddDataSegment(module,
+ "seg",
+ "0",
+ false,
+ BinaryenConst(module, BinaryenLiteralInt32(0)),
+ "data segment 3",
+ 14);
BinaryenExpressionRef valueList[] = {
// Unary