Debian Codegraph @

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

raw
1 ;; RUN: wast --assert default --snapshot tests/snapshots % -f=-gc-types
2
3 (assert_invalid
4 (module
5 (type (func (result externref)))
6 )
7 "gc types are disallowed")
8
9 (assert_invalid
10 (module
11 (type (func (result (ref any))))
12 )
13 "gc types are disallowed")
14
15 (module
16 (table 1 funcref)
17 )
18
19 (module
20 (type $t (func))
21 (table 1 (ref null $t))
22 )
23
24 (assert_invalid
25 (module
26 (type (array i8))
27 )
28 "cannot define array types")
29
30 (assert_invalid
31 (module
32 (type (struct))
33 )
34 "cannot define struct types")