Debian Codegraph @

tests/snapshots/cli/gc/invalid.wast.json

raw
1 {
2 "source_filename": "tests/cli/gc/invalid.wast",
3 "commands": [
4 {
5 "type": "assert_invalid",
6 "line": 6,
7 "filename": "invalid.0.wasm",
8 "module_type": "binary",
9 "text": "type mismatch: expected structref, found anyref"
10 },
11 {
12 "type": "assert_invalid",
13 "line": 20,
14 "filename": "invalid.1.wasm",
15 "module_type": "binary",
16 "text": "type mismatch: expected structref, found anyref"
17 },
18 {
19 "type": "assert_invalid",
20 "line": 36,
21 "filename": "invalid.2.wasm",
22 "module_type": "binary",
23 "text": "expected struct type at index 0, found (func)"
24 },
25 {
26 "type": "assert_invalid",
27 "line": 42,
28 "filename": "invalid.3.wasm",
29 "module_type": "binary",
30 "text": "unknown field: field index out of bounds"
31 },
32 {
33 "type": "assert_invalid",
34 "line": 48,
35 "filename": "invalid.4.wasm",
36 "module_type": "binary",
37 "text": "unknown type: type index out of bounds"
38 },
39 {
40 "type": "assert_invalid",
41 "line": 53,
42 "filename": "invalid.5.wasm",
43 "module_type": "binary",
44 "text": "expected array type at index 0, found (struct)"
45 },
46 {
47 "type": "assert_invalid",
48 "line": 59,
49 "filename": "invalid.6.wasm",
50 "module_type": "binary",
51 "text": "unknown type: type index out of bounds"
52 },
53 {
54 "type": "assert_invalid",
55 "line": 64,
56 "filename": "invalid.7.wasm",
57 "module_type": "binary",
58 "text": "type index 0 is not a function type"
59 },
60 {
61 "type": "assert_invalid",
62 "line": 70,
63 "filename": "invalid.8.wasm",
64 "module_type": "binary",
65 "text": "expected func type at index 0, found (struct)"
66 },
67 {
68 "type": "assert_invalid",
69 "line": 76,
70 "filename": "invalid.9.wasm",
71 "module_type": "binary",
72 "text": "type mismatch: br_on_non_null target has no label types"
73 },
74 {
75 "type": "assert_invalid",
76 "line": 87,
77 "filename": "invalid.10.wasm",
78 "module_type": "binary",
79 "text": "type mismatch: br_on_non_null target does not end with heap type"
80 },
81 {
82 "type": "assert_invalid",
83 "line": 98,
84 "filename": "invalid.11.wasm",
85 "module_type": "binary",
86 "text": "invalid `struct.new_default`: (ref func) field is not defaultable"
87 },
88 {
89 "type": "assert_invalid",
90 "line": 107,
91 "filename": "invalid.12.wasm",
92 "module_type": "binary",
93 "text": "cannot use struct.get_u with non-packed storage types"
94 },
95 {
96 "type": "assert_invalid",
97 "line": 117,
98 "filename": "invalid.13.wasm",
99 "module_type": "binary",
100 "text": "invalid `array.new_default`: (ref func) field is not defaultable"
101 },
102 {
103 "type": "assert_invalid",
104 "line": 126,
105 "filename": "invalid.14.wasm",
106 "module_type": "binary",
107 "text": "array.new_data can only create arrays with numeric and vector elements"
108 },
109 {
110 "type": "assert_invalid",
111 "line": 139,
112 "filename": "invalid.15.wasm",
113 "module_type": "binary",
114 "text": "data count section required"
115 },
116 {
117 "type": "module",
118 "line": 169,
119 "filename": "invalid.16.wasm",
120 "module_type": "binary"
121 },
122 {
123 "type": "assert_invalid",
124 "line": 201,
125 "filename": "invalid.17.wasm",
126 "module_type": "binary",
127 "text": "unknown data segment 100"
128 },
129 {
130 "type": "assert_invalid",
131 "line": 213,
132 "filename": "invalid.18.wasm",
133 "module_type": "binary",
134 "text": "type mismatch: array.new_elem can only create arrays with reference elements"
135 },
136 {
137 "type": "assert_invalid",
138 "line": 226,
139 "filename": "invalid.19.wasm",
140 "module_type": "binary",
141 "text": "invalid array.new_elem instruction: element segment 0 type mismatch: expected (ref any), found funcref"
142 },
143 {
144 "type": "assert_invalid",
145 "line": 239,
146 "filename": "invalid.20.wasm",
147 "module_type": "binary",
148 "text": "array types do not match: expected i8, found i16"
149 },
150 {
151 "type": "assert_invalid",
152 "line": 250,
153 "filename": "invalid.21.wasm",
154 "module_type": "binary",
155 "text": "array types do not match: expected i16, found i8"
156 },
157 {
158 "type": "assert_invalid",
159 "line": 261,
160 "filename": "invalid.22.wasm",
161 "module_type": "binary",
162 "text": "array types do not match: expected i32, found i64"
163 },
164 {
165 "type": "assert_invalid",
166 "line": 272,
167 "filename": "invalid.23.wasm",
168 "module_type": "binary",
169 "text": "array types do not match: expected i32, found i8"
170 },
171 {
172 "type": "assert_invalid",
173 "line": 283,
174 "filename": "invalid.24.wasm",
175 "module_type": "binary",
176 "text": "array types do not match: expected i8, found i32"
177 },
178 {
179 "type": "module",
180 "line": 293,
181 "filename": "invalid.25.wasm",
182 "module_type": "binary"
183 },
184 {
185 "type": "assert_invalid",
186 "line": 303,
187 "filename": "invalid.26.wasm",
188 "module_type": "binary",
189 "text": "type mismatch: expected a reference type, found nothing"
190 },
191 {
192 "type": "assert_invalid",
193 "line": 316,
194 "filename": "invalid.27.wasm",
195 "module_type": "binary",
196 "text": "indirect calls must go through a table with type <= funcref"
197 }
198 ]
199 }