From e6bbff7846cad9daf178b6917d78abe5cfcd5771 Mon Sep 17 00:00:00 2001 From: Alon Zakai Date: Tue, 30 Jul 2024 14:29:47 -0700 Subject: Fix shareability of externalized nulls (#6791) --- test/spec/convert_extern.wast | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'test/spec') diff --git a/test/spec/convert_extern.wast b/test/spec/convert_extern.wast index 36254bc4a..443bc8956 100644 --- a/test/spec/convert_extern.wast +++ b/test/spec/convert_extern.wast @@ -5,7 +5,15 @@ (ref.null (shared noextern)) ) ) + + (func $shared-null-rev (export "shared-null-rev") (result (ref null (shared extern))) + ;; As before, but the reverse conversion. + (extern.convert_any + (ref.null (shared any)) + ) + ) ) (assert_return (invoke "shared-null") (ref.null (shared any))) +(assert_return (invoke "shared-null-rev") (ref.null (shared extern))) -- cgit v1.2.3