Debian Codegraph @

tests/snapshots/testsuite/proposals/wasm-3.0/struct.wast.json

raw
1 {
2 "source_filename": "tests/testsuite/proposals/wasm-3.0/struct.wast",
3 "commands": [
4 {
5 "type": "module",
6 "line": 3,
7 "filename": "struct.0.wasm",
8 "module_type": "binary"
9 },
10 {
11 "type": "assert_malformed",
12 "line": 16,
13 "filename": "struct.1.wat",
14 "module_type": "text",
15 "text": "duplicate field"
16 },
17 {
18 "type": "module",
19 "line": 25,
20 "filename": "struct.2.wasm",
21 "module_type": "binary"
22 },
23 {
24 "type": "assert_invalid",
25 "line": 37,
26 "filename": "struct.3.wasm",
27 "module_type": "binary",
28 "text": "unknown type"
29 },
30 {
31 "type": "assert_invalid",
32 "line": 41,
33 "filename": "struct.4.wasm",
34 "module_type": "binary",
35 "text": "unknown type"
36 },
37 {
38 "type": "module",
39 "line": 48,
40 "filename": "struct.5.wasm",
41 "module_type": "binary"
42 },
43 {
44 "type": "assert_invalid",
45 "line": 59,
46 "filename": "struct.6.wasm",
47 "module_type": "binary",
48 "text": "type mismatch"
49 },
50 {
51 "type": "module",
52 "line": 70,
53 "filename": "struct.7.wasm",
54 "module_type": "binary"
55 },
56 {
57 "type": "assert_return",
58 "line": 122,
59 "action": {
60 "type": "invoke",
61 "field": "new",
62 "args": []
63 },
64 "expected": [
65 {
66 "type": "structref"
67 }
68 ]
69 },
70 {
71 "type": "assert_return",
72 "line": 124,
73 "action": {
74 "type": "invoke",
75 "field": "get_0_0",
76 "args": []
77 },
78 "expected": [
79 {
80 "type": "f32",
81 "value": "0"
82 }
83 ]
84 },
85 {
86 "type": "assert_return",
87 "line": 125,
88 "action": {
89 "type": "invoke",
90 "field": "get_vec_0",
91 "args": []
92 },
93 "expected": [
94 {
95 "type": "f32",
96 "value": "0"
97 }
98 ]
99 },
100 {
101 "type": "assert_return",
102 "line": 126,
103 "action": {
104 "type": "invoke",
105 "field": "get_0_y",
106 "args": []
107 },
108 "expected": [
109 {
110 "type": "f32",
111 "value": "0"
112 }
113 ]
114 },
115 {
116 "type": "assert_return",
117 "line": 127,
118 "action": {
119 "type": "invoke",
120 "field": "get_vec_y",
121 "args": []
122 },
123 "expected": [
124 {
125 "type": "f32",
126 "value": "0"
127 }
128 ]
129 },
130 {
131 "type": "assert_return",
132 "line": 129,
133 "action": {
134 "type": "invoke",
135 "field": "set_get_y",
136 "args": [
137 {
138 "type": "f32",
139 "value": "1088421888"
140 }
141 ]
142 },
143 "expected": [
144 {
145 "type": "f32",
146 "value": "1088421888"
147 }
148 ]
149 },
150 {
151 "type": "assert_return",
152 "line": 130,
153 "action": {
154 "type": "invoke",
155 "field": "set_get_1",
156 "args": [
157 {
158 "type": "f32",
159 "value": "1088421888"
160 }
161 ]
162 },
163 "expected": [
164 {
165 "type": "f32",
166 "value": "1088421888"
167 }
168 ]
169 },
170 {
171 "type": "assert_invalid",
172 "line": 133,
173 "filename": "struct.8.wasm",
174 "module_type": "binary",
175 "text": "field is immutable"
176 },
177 {
178 "type": "module",
179 "line": 145,
180 "filename": "struct.9.wasm",
181 "module_type": "binary"
182 },
183 {
184 "type": "assert_trap",
185 "line": 155,
186 "action": {
187 "type": "invoke",
188 "field": "struct.get-null",
189 "args": []
190 },
191 "text": "null structure reference"
192 },
193 {
194 "type": "assert_trap",
195 "line": 156,
196 "action": {
197 "type": "invoke",
198 "field": "struct.set-null",
199 "args": []
200 },
201 "text": "null structure reference"
202 },
203 {
204 "type": "module",
205 "line": 160,
206 "filename": "struct.10.wasm",
207 "module_type": "binary"
208 },
209 {
210 "type": "assert_return",
211 "line": 219,
212 "action": {
213 "type": "invoke",
214 "field": "get_packed_g0_0",
215 "args": []
216 },
217 "expected": [
218 {
219 "type": "i32",
220 "value": "0"
221 },
222 {
223 "type": "i32",
224 "value": "0"
225 }
226 ]
227 },
228 {
229 "type": "assert_return",
230 "line": 220,
231 "action": {
232 "type": "invoke",
233 "field": "get_packed_g1_0",
234 "args": []
235 },
236 "expected": [
237 {
238 "type": "i32",
239 "value": "-2"
240 },
241 {
242 "type": "i32",
243 "value": "254"
244 }
245 ]
246 },
247 {
248 "type": "assert_return",
249 "line": 221,
250 "action": {
251 "type": "invoke",
252 "field": "get_packed_g0_1",
253 "args": []
254 },
255 "expected": [
256 {
257 "type": "i32",
258 "value": "1"
259 },
260 {
261 "type": "i32",
262 "value": "1"
263 }
264 ]
265 },
266 {
267 "type": "assert_return",
268 "line": 222,
269 "action": {
270 "type": "invoke",
271 "field": "get_packed_g1_1",
272 "args": []
273 },
274 "expected": [
275 {
276 "type": "i32",
277 "value": "-1"
278 },
279 {
280 "type": "i32",
281 "value": "255"
282 }
283 ]
284 },
285 {
286 "type": "assert_return",
287 "line": 223,
288 "action": {
289 "type": "invoke",
290 "field": "get_packed_g0_2",
291 "args": []
292 },
293 "expected": [
294 {
295 "type": "i32",
296 "value": "2"
297 },
298 {
299 "type": "i32",
300 "value": "2"
301 }
302 ]
303 },
304 {
305 "type": "assert_return",
306 "line": 224,
307 "action": {
308 "type": "invoke",
309 "field": "get_packed_g1_2",
310 "args": []
311 },
312 "expected": [
313 {
314 "type": "i32",
315 "value": "-2"
316 },
317 {
318 "type": "i32",
319 "value": "65534"
320 }
321 ]
322 },
323 {
324 "type": "assert_return",
325 "line": 225,
326 "action": {
327 "type": "invoke",
328 "field": "get_packed_g0_3",
329 "args": []
330 },
331 "expected": [
332 {
333 "type": "i32",
334 "value": "3"
335 },
336 {
337 "type": "i32",
338 "value": "3"
339 }
340 ]
341 },
342 {
343 "type": "assert_return",
344 "line": 226,
345 "action": {
346 "type": "invoke",
347 "field": "get_packed_g1_3",
348 "args": []
349 },
350 "expected": [
351 {
352 "type": "i32",
353 "value": "-1"
354 },
355 {
356 "type": "i32",
357 "value": "65535"
358 }
359 ]
360 },
361 {
362 "type": "assert_return",
363 "line": 228,
364 "action": {
365 "type": "invoke",
366 "field": "set_get_packed_g0_1",
367 "args": [
368 {
369 "type": "i32",
370 "value": "257"
371 }
372 ]
373 },
374 "expected": [
375 {
376 "type": "i32",
377 "value": "1"
378 },
379 {
380 "type": "i32",
381 "value": "1"
382 }
383 ]
384 },
385 {
386 "type": "assert_return",
387 "line": 229,
388 "action": {
389 "type": "invoke",
390 "field": "set_get_packed_g0_3",
391 "args": [
392 {
393 "type": "i32",
394 "value": "257"
395 }
396 ]
397 },
398 "expected": [
399 {
400 "type": "i32",
401 "value": "257"
402 },
403 {
404 "type": "i32",
405 "value": "257"
406 }
407 ]
408 }
409 ]
410 }