diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/example/c-api-kitchen-sink.c | 2 | ||||
-rw-r--r-- | test/example/c-api-kitchen-sink.txt | 3 |
2 files changed, 5 insertions, 0 deletions
diff --git a/test/example/c-api-kitchen-sink.c b/test/example/c-api-kitchen-sink.c index ad499291a..4cbbb8fb5 100644 --- a/test/example/c-api-kitchen-sink.c +++ b/test/example/c-api-kitchen-sink.c @@ -192,6 +192,8 @@ void test_core() { BinaryenUnreachable(module), }; + BinaryenExpressionPrint(valueList[3]); // test printing a standalone expression + // Make the main body of the function. and one block with a return value, one without BinaryenExpressionRef value = BinaryenBlock(module, "the-value", valueList, sizeof(valueList) / sizeof(BinaryenExpressionRef)); BinaryenExpressionRef nothing = BinaryenBlock(module, "the-nothing", &value, 1); diff --git a/test/example/c-api-kitchen-sink.txt b/test/example/c-api-kitchen-sink.txt index 52b6cd6ed..a5fa729c8 100644 --- a/test/example/c-api-kitchen-sink.txt +++ b/test/example/c-api-kitchen-sink.txt @@ -3,6 +3,9 @@ BinaryenInt32: 1 BinaryenInt64: 2 BinaryenFloat32: 3 BinaryenFloat64: 4 +(f32.neg + (f32.const -33.61199951171875) +) (module (memory 1 256 (segment 10 "hello, world") |