Debian Codegraph @

tests/cli/missing-features/reference-types/gc.wast

raw
1 ;; RUN: wast --assert default --snapshot tests/snapshots % -f mvp,reference-types
2
3 (assert_invalid
4 (module (type (func (param i31ref))))
5 "heap types not supported without the gc feature")
6 (assert_invalid
7 (module (type (func (param anyref))))
8 "heap types not supported without the gc feature")
9 (assert_invalid
10 (module (type (func (param (ref none)))))
11 "heap types not supported without the gc feature")
12 (assert_invalid
13 (module (type (func (param (ref array)))))
14 "heap types not supported without the gc feature")
15 (assert_invalid
16 (module (type (func (param (ref struct)))))
17 "heap types not supported without the gc feature")
18 (assert_invalid
19 (module (type (func (param (ref eq)))))
20 "heap types not supported without the gc feature")
21 (assert_invalid
22 (module (type (func (param (ref noextern)))))
23 "heap types not supported without the gc feature")
24 (assert_invalid
25 (module (type (func (param (ref nofunc)))))
26 "heap types not supported without the gc feature")
27 (assert_invalid
28 (module (func (local i31ref)))
29 "heap types not supported without the gc feature")
30 (assert_invalid
31 (module (func (block (result i31ref) unreachable)))
32 "heap types not supported without the gc feature")
33 (assert_invalid
34 (module (func ref.null array drop))
35 "heap types not supported without the gc feature")
36
37 (assert_invalid
38 (module (type $t (func (param (ref $t)))))
39 "function references required for index")
40
41 (assert_invalid
42 (module (type $t (sub (func))))
43 "gc proposal must be enabled")
44
45 (assert_invalid
46 (module (type $t (func)) (type (sub $t (func))))
47 "gc proposal must be enabled")