summaryrefslogtreecommitdiff
path: root/test/example/c-api-kitchen-sink.c
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2016-07-11 15:22:58 -0700
committerAlon Zakai <alonzakai@gmail.com>2016-07-12 13:53:26 -0700
commitf050b6300ceb6039d608abc20939ebf241378cdc (patch)
tree2c1f911f38b436ec4d50a8f5382730cef84d55de /test/example/c-api-kitchen-sink.c
parent91e38285dc27e5dbac3291258342835fc3e90eab (diff)
downloadbinaryen-f050b6300ceb6039d608abc20939ebf241378cdc.tar.gz
binaryen-f050b6300ceb6039d608abc20939ebf241378cdc.tar.bz2
binaryen-f050b6300ceb6039d608abc20939ebf241378cdc.zip
allow multiple traces
Diffstat (limited to 'test/example/c-api-kitchen-sink.c')
-rw-r--r--test/example/c-api-kitchen-sink.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/test/example/c-api-kitchen-sink.c b/test/example/c-api-kitchen-sink.c
index 4f1d839c0..ddfffb0d7 100644
--- a/test/example/c-api-kitchen-sink.c
+++ b/test/example/c-api-kitchen-sink.c
@@ -53,15 +53,15 @@ BinaryenExpressionRef makeSomething(BinaryenModuleRef module) {
// tests
-void test_core() {
-
- // Core types
-
+void test_types() {
printf("BinaryenNone: %d\n", BinaryenNone());
printf("BinaryenInt32: %d\n", BinaryenInt32());
printf("BinaryenInt64: %d\n", BinaryenInt64());
printf("BinaryenFloat32: %d\n", BinaryenFloat32());
printf("BinaryenFloat64: %d\n", BinaryenFloat64());
+}
+
+void test_core() {
// Module creation
@@ -507,6 +507,7 @@ void test_tracing() {
}
int main() {
+ test_types();
test_core();
test_relooper();
test_binaries();