Debian Codegraph @

tests/cli/shared-everything-threads/polymorphism.wast

raw
1 ;; RUN: wast --assert default --snapshot tests/snapshots % -f shared-everything-threads
2
3 ;; Some instructions are shared-polymorphic and work with shared or unshared
4 ;; references.
5 (module
6 (func (drop (ref.eq (ref.null (shared none)) (ref.null (shared none)))))
7
8 (func (param (ref null (shared i31))) (drop (i31.get_s (local.get 0))))
9 (func (param (ref null (shared i31))) (drop (i31.get_u (local.get 0))))
10
11 (func (param (ref null (shared array))) (drop (array.len (local.get 0))))
12
13 (func (param (ref null (shared extern))) (result (ref null (shared any)))
14 (any.convert_extern (local.get 0))
15 )
16 (func (param (ref (shared extern))) (result (ref (shared any)))
17 (any.convert_extern (local.get 0))
18 )
19 (func (param (ref null (shared any))) (result (ref null (shared extern)))
20 (extern.convert_any (local.get 0))
21 )
22 (func (param (ref (shared any))) (result (ref (shared extern)))
23 (extern.convert_any (local.get 0))
24 )
25 )