Debian Codegraph @

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

raw
1 {
2 "source_filename": "tests/testsuite/proposals/wasm-3.0/ref_null.wast",
3 "commands": [
4 {
5 "type": "module",
6 "line": 1,
7 "filename": "ref_null.0.wasm",
8 "module_type": "binary"
9 },
10 {
11 "type": "assert_return",
12 "line": 16,
13 "action": {
14 "type": "invoke",
15 "field": "anyref",
16 "args": []
17 },
18 "expected": [
19 {
20 "type": "anyref",
21 "value": "null"
22 }
23 ]
24 },
25 {
26 "type": "assert_return",
27 "line": 17,
28 "action": {
29 "type": "invoke",
30 "field": "funcref",
31 "args": []
32 },
33 "expected": [
34 {
35 "type": "funcref",
36 "value": "null"
37 }
38 ]
39 },
40 {
41 "type": "assert_return",
42 "line": 18,
43 "action": {
44 "type": "invoke",
45 "field": "exnref",
46 "args": []
47 },
48 "expected": [
49 {
50 "type": "exnref",
51 "value": "null"
52 }
53 ]
54 },
55 {
56 "type": "assert_return",
57 "line": 19,
58 "action": {
59 "type": "invoke",
60 "field": "externref",
61 "args": []
62 },
63 "expected": [
64 {
65 "type": "externref",
66 "value": "null"
67 }
68 ]
69 },
70 {
71 "type": "assert_return",
72 "line": 20,
73 "action": {
74 "type": "invoke",
75 "field": "ref",
76 "args": []
77 },
78 "expected": [
79 {
80 "type": "refnull"
81 }
82 ]
83 },
84 {
85 "type": "module",
86 "line": 23,
87 "filename": "ref_null.1.wasm",
88 "module_type": "binary"
89 },
90 {
91 "type": "assert_return",
92 "line": 55,
93 "action": {
94 "type": "invoke",
95 "field": "anyref",
96 "args": []
97 },
98 "expected": [
99 {
100 "type": "anyref",
101 "value": "null"
102 }
103 ]
104 },
105 {
106 "type": "assert_return",
107 "line": 56,
108 "action": {
109 "type": "invoke",
110 "field": "anyref",
111 "args": []
112 },
113 "expected": [
114 {
115 "type": "nullref"
116 }
117 ]
118 },
119 {
120 "type": "assert_return",
121 "line": 57,
122 "action": {
123 "type": "invoke",
124 "field": "anyref",
125 "args": []
126 },
127 "expected": [
128 {
129 "type": "refnull"
130 }
131 ]
132 },
133 {
134 "type": "assert_return",
135 "line": 58,
136 "action": {
137 "type": "invoke",
138 "field": "nullref",
139 "args": []
140 },
141 "expected": [
142 {
143 "type": "anyref",
144 "value": "null"
145 }
146 ]
147 },
148 {
149 "type": "assert_return",
150 "line": 59,
151 "action": {
152 "type": "invoke",
153 "field": "nullref",
154 "args": []
155 },
156 "expected": [
157 {
158 "type": "nullref"
159 }
160 ]
161 },
162 {
163 "type": "assert_return",
164 "line": 60,
165 "action": {
166 "type": "invoke",
167 "field": "nullref",
168 "args": []
169 },
170 "expected": [
171 {
172 "type": "refnull"
173 }
174 ]
175 },
176 {
177 "type": "assert_return",
178 "line": 61,
179 "action": {
180 "type": "invoke",
181 "field": "funcref",
182 "args": []
183 },
184 "expected": [
185 {
186 "type": "funcref",
187 "value": "null"
188 }
189 ]
190 },
191 {
192 "type": "assert_return",
193 "line": 62,
194 "action": {
195 "type": "invoke",
196 "field": "funcref",
197 "args": []
198 },
199 "expected": [
200 {
201 "type": "nullfuncref"
202 }
203 ]
204 },
205 {
206 "type": "assert_return",
207 "line": 63,
208 "action": {
209 "type": "invoke",
210 "field": "funcref",
211 "args": []
212 },
213 "expected": [
214 {
215 "type": "refnull"
216 }
217 ]
218 },
219 {
220 "type": "assert_return",
221 "line": 64,
222 "action": {
223 "type": "invoke",
224 "field": "nullfuncref",
225 "args": []
226 },
227 "expected": [
228 {
229 "type": "funcref",
230 "value": "null"
231 }
232 ]
233 },
234 {
235 "type": "assert_return",
236 "line": 65,
237 "action": {
238 "type": "invoke",
239 "field": "nullfuncref",
240 "args": []
241 },
242 "expected": [
243 {
244 "type": "nullfuncref"
245 }
246 ]
247 },
248 {
249 "type": "assert_return",
250 "line": 66,
251 "action": {
252 "type": "invoke",
253 "field": "nullfuncref",
254 "args": []
255 },
256 "expected": [
257 {
258 "type": "refnull"
259 }
260 ]
261 },
262 {
263 "type": "assert_return",
264 "line": 67,
265 "action": {
266 "type": "invoke",
267 "field": "exnref",
268 "args": []
269 },
270 "expected": [
271 {
272 "type": "exnref",
273 "value": "null"
274 }
275 ]
276 },
277 {
278 "type": "assert_return",
279 "line": 68,
280 "action": {
281 "type": "invoke",
282 "field": "exnref",
283 "args": []
284 },
285 "expected": [
286 {
287 "type": "nullexnref"
288 }
289 ]
290 },
291 {
292 "type": "assert_return",
293 "line": 69,
294 "action": {
295 "type": "invoke",
296 "field": "exnref",
297 "args": []
298 },
299 "expected": [
300 {
301 "type": "refnull"
302 }
303 ]
304 },
305 {
306 "type": "assert_return",
307 "line": 70,
308 "action": {
309 "type": "invoke",
310 "field": "nullexnref",
311 "args": []
312 },
313 "expected": [
314 {
315 "type": "exnref",
316 "value": "null"
317 }
318 ]
319 },
320 {
321 "type": "assert_return",
322 "line": 71,
323 "action": {
324 "type": "invoke",
325 "field": "nullexnref",
326 "args": []
327 },
328 "expected": [
329 {
330 "type": "nullexnref"
331 }
332 ]
333 },
334 {
335 "type": "assert_return",
336 "line": 72,
337 "action": {
338 "type": "invoke",
339 "field": "nullexnref",
340 "args": []
341 },
342 "expected": [
343 {
344 "type": "refnull"
345 }
346 ]
347 },
348 {
349 "type": "assert_return",
350 "line": 73,
351 "action": {
352 "type": "invoke",
353 "field": "externref",
354 "args": []
355 },
356 "expected": [
357 {
358 "type": "externref",
359 "value": "null"
360 }
361 ]
362 },
363 {
364 "type": "assert_return",
365 "line": 74,
366 "action": {
367 "type": "invoke",
368 "field": "externref",
369 "args": []
370 },
371 "expected": [
372 {
373 "type": "nullexternref"
374 }
375 ]
376 },
377 {
378 "type": "assert_return",
379 "line": 75,
380 "action": {
381 "type": "invoke",
382 "field": "externref",
383 "args": []
384 },
385 "expected": [
386 {
387 "type": "refnull"
388 }
389 ]
390 },
391 {
392 "type": "assert_return",
393 "line": 76,
394 "action": {
395 "type": "invoke",
396 "field": "nullexternref",
397 "args": []
398 },
399 "expected": [
400 {
401 "type": "externref",
402 "value": "null"
403 }
404 ]
405 },
406 {
407 "type": "assert_return",
408 "line": 77,
409 "action": {
410 "type": "invoke",
411 "field": "nullexternref",
412 "args": []
413 },
414 "expected": [
415 {
416 "type": "nullexternref"
417 }
418 ]
419 },
420 {
421 "type": "assert_return",
422 "line": 78,
423 "action": {
424 "type": "invoke",
425 "field": "nullexternref",
426 "args": []
427 },
428 "expected": [
429 {
430 "type": "refnull"
431 }
432 ]
433 },
434 {
435 "type": "assert_return",
436 "line": 79,
437 "action": {
438 "type": "invoke",
439 "field": "ref",
440 "args": []
441 },
442 "expected": [
443 {
444 "type": "funcref",
445 "value": "null"
446 }
447 ]
448 },
449 {
450 "type": "assert_return",
451 "line": 80,
452 "action": {
453 "type": "invoke",
454 "field": "ref",
455 "args": []
456 },
457 "expected": [
458 {
459 "type": "nullfuncref"
460 }
461 ]
462 },
463 {
464 "type": "assert_return",
465 "line": 81,
466 "action": {
467 "type": "invoke",
468 "field": "ref",
469 "args": []
470 },
471 "expected": [
472 {
473 "type": "refnull"
474 }
475 ]
476 }
477 ]
478 }