diff options
author | Heejin Ahn <aheejin@gmail.com> | 2019-05-07 18:52:57 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-05-07 18:52:57 -0700 |
commit | 14a286971d203e3caf6f49089fe6ddc16024861f (patch) | |
tree | e20a5659bfd95dacc3f2d779f759173da065d607 /test/example | |
parent | da716eb233f9fe7cefc61d9d1ce54f8b8c9d9126 (diff) | |
download | binaryen-14a286971d203e3caf6f49089fe6ddc16024861f.tar.gz binaryen-14a286971d203e3caf6f49089fe6ddc16024861f.tar.bz2 binaryen-14a286971d203e3caf6f49089fe6ddc16024861f.zip |
Add except_ref type (#2081)
This adds except_ref type, which is a part of the exception handling
proposal.
Diffstat (limited to 'test/example')
-rw-r--r-- | test/example/c-api-kitchen-sink.c | 1 | ||||
-rw-r--r-- | test/example/c-api-kitchen-sink.txt | 3 |
2 files changed, 3 insertions, 1 deletions
diff --git a/test/example/c-api-kitchen-sink.c b/test/example/c-api-kitchen-sink.c index 66d7bee06..9e996a881 100644 --- a/test/example/c-api-kitchen-sink.c +++ b/test/example/c-api-kitchen-sink.c @@ -155,6 +155,7 @@ void test_types() { printf("BinaryenTypeFloat32: %d\n", BinaryenTypeFloat32()); printf("BinaryenTypeFloat64: %d\n", BinaryenTypeFloat64()); printf("BinaryenTypeVec128: %d\n", BinaryenTypeVec128()); + printf("BinaryenTypeExceptRef: %d\n", BinaryenTypeExceptRef()); printf("BinaryenTypeUnreachable: %d\n", BinaryenTypeUnreachable()); printf("BinaryenTypeAuto: %d\n", BinaryenTypeAuto()); } diff --git a/test/example/c-api-kitchen-sink.txt b/test/example/c-api-kitchen-sink.txt index df193c379..3ac03367b 100644 --- a/test/example/c-api-kitchen-sink.txt +++ b/test/example/c-api-kitchen-sink.txt @@ -4,7 +4,8 @@ BinaryenTypeInt64: 2 BinaryenTypeFloat32: 3 BinaryenTypeFloat64: 4 BinaryenTypeVec128: 5 -BinaryenTypeUnreachable: 6 +BinaryenTypeExceptRef: 6 +BinaryenTypeUnreachable: 7 BinaryenTypeAuto: -1 (f32.neg (f32.const -33.61199951171875) |