diff options
author | Alon Zakai <alonzakai@gmail.com> | 2016-06-24 12:00:56 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-06-24 12:00:56 -0700 |
commit | ed4e614430e8864c9f02508f5920c45fd137faf1 (patch) | |
tree | 0989e222916bca09e9303805b8f8659de35571bc /test/example/c-api-kitchen-sink.c | |
parent | 51e7034690b3db8b18b2dee59e896181cf2eca24 (diff) | |
download | binaryen-ed4e614430e8864c9f02508f5920c45fd137faf1.tar.gz binaryen-ed4e614430e8864c9f02508f5920c45fd137faf1.tar.bz2 binaryen-ed4e614430e8864c9f02508f5920c45fd137faf1.zip |
add BinaryenExpressionPrint to c api (#599)
Diffstat (limited to 'test/example/c-api-kitchen-sink.c')
-rw-r--r-- | test/example/c-api-kitchen-sink.c | 2 |
1 files changed, 2 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); |