tests/snapshots/testsuite/proposals/wasm-3.0/struct.wast/16.print
raw| 1 | (module |
| 2 | (type $t (;0;) (struct (field i32) (field (mut i32)))) |
| 3 | (type (;1;) (func)) |
| 4 | (export "struct.get-null" (func 0)) |
| 5 | (export "struct.set-null" (func 1)) |
| 6 | (func (;0;) (type 1) |
| 7 | (local (ref null $t)) |
| 8 | local.get 0 |
| 9 | struct.get $t 1 |
| 10 | drop |
| 11 | ) |
| 12 | (func (;1;) (type 1) |
| 13 | (local (ref null $t)) |
| 14 | local.get 0 |
| 15 | i32.const 0 |
| 16 | struct.set $t 1 |
| 17 | ) |
| 18 | ) |