From 2d86d1f8fb217456d8bcc4b401ce7d143aa36ee9 Mon Sep 17 00:00:00 2001 From: Thomas Lively <7121787+tlively@users.noreply.github.com> Date: Wed, 17 Aug 2022 22:51:27 -0700 Subject: Restore the `extern` heap type (#4898) The GC proposal has split `any` and `extern` back into two separate types, so reintroduce `HeapType::ext` to represent `extern`. Before it was originally removed in #4633, externref was a subtype of anyref, but now it is not. Now that we have separate heaptype type hierarchies, make `HeapType::getLeastUpperBound` fallible as well. --- test/example/c-api-kitchen-sink.c | 1 + 1 file changed, 1 insertion(+) (limited to 'test/example/c-api-kitchen-sink.c') diff --git a/test/example/c-api-kitchen-sink.c b/test/example/c-api-kitchen-sink.c index cb8349f89..f6cee93fa 100644 --- a/test/example/c-api-kitchen-sink.c +++ b/test/example/c-api-kitchen-sink.c @@ -318,6 +318,7 @@ void test_types() { BinaryenPackedType i16 = BinaryenPackedTypeInt16(); printf("BinaryenPackedTypeInt16: %d\n", i16); + printf("BinaryenHeapTypeExt: %zd\n", BinaryenHeapTypeExt()); printf("BinaryenHeapTypeFunc: %zd\n", BinaryenHeapTypeFunc()); printf("BinaryenHeapTypeAny: %zd\n", BinaryenHeapTypeAny()); printf("BinaryenHeapTypeEq: %zd\n", BinaryenHeapTypeEq()); -- cgit v1.2.3