summaryrefslogtreecommitdiff
path: root/test/example/c-api-kitchen-sink.c
diff options
context:
space:
mode:
authorThomas Lively <tlively@google.com>2022-11-22 20:48:58 -0600
committerGitHub <noreply@github.com>2022-11-23 02:48:58 +0000
commit853b31ec89416bef0014e06f2defaef74f47b81e (patch)
treea288eeab1797ae6623c86cef6a6425c754cf498b /test/example/c-api-kitchen-sink.c
parentf8e6d0253ba96bd26013146282ea4063f5853289 (diff)
downloadbinaryen-853b31ec89416bef0014e06f2defaef74f47b81e.tar.gz
binaryen-853b31ec89416bef0014e06f2defaef74f47b81e.tar.bz2
binaryen-853b31ec89416bef0014e06f2defaef74f47b81e.zip
Change the default type system to isorecursive (#5239)
This makes Binaryen's default type system match the WasmGC spec. Update the way type definitions without supertypes are printed to reduce the output diff for MVP tests that do not involve WasmGC. Also port some type-builder.cpp tests from test/example to test/gtest since they needed to be rewritten to work with isorecursive type anyway. A follow-on PR will remove equirecursive types completely.
Diffstat (limited to 'test/example/c-api-kitchen-sink.c')
-rw-r--r--test/example/c-api-kitchen-sink.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/example/c-api-kitchen-sink.c b/test/example/c-api-kitchen-sink.c
index d59c9e0c7..8dd9260d5 100644
--- a/test/example/c-api-kitchen-sink.c
+++ b/test/example/c-api-kitchen-sink.c
@@ -2089,7 +2089,7 @@ void test_func_opt() {
void test_typesystem() {
BinaryenTypeSystem defaultTypeSystem = BinaryenGetTypeSystem();
- assert(defaultTypeSystem == BinaryenTypeSystemEquirecursive());
+ assert(defaultTypeSystem == BinaryenTypeSystemIsorecursive());
printf("BinaryenTypeSystemEquirecursive: %d\n",
BinaryenTypeSystemEquirecursive());
BinaryenSetTypeSystem(BinaryenTypeSystemNominal());