tests/snapshots/testsuite/proposals/wasm-3.0/store0.wast.json
raw| 1 | { |
| 2 | "source_filename": "tests/testsuite/proposals/wasm-3.0/store0.wast", |
| 3 | "commands": [ |
| 4 | { |
| 5 | "type": "module", |
| 6 | "line": 3, |
| 7 | "filename": "store0.0.wasm", |
| 8 | "module_type": "binary" |
| 9 | }, |
| 10 | { |
| 11 | "type": "action", |
| 12 | "line": 22, |
| 13 | "action": { |
| 14 | "type": "invoke", |
| 15 | "field": "store1", |
| 16 | "args": [ |
| 17 | { |
| 18 | "type": "i32", |
| 19 | "value": "0" |
| 20 | }, |
| 21 | { |
| 22 | "type": "i64", |
| 23 | "value": "1" |
| 24 | } |
| 25 | ] |
| 26 | } |
| 27 | }, |
| 28 | { |
| 29 | "type": "action", |
| 30 | "line": 23, |
| 31 | "action": { |
| 32 | "type": "invoke", |
| 33 | "field": "store2", |
| 34 | "args": [ |
| 35 | { |
| 36 | "type": "i32", |
| 37 | "value": "0" |
| 38 | }, |
| 39 | { |
| 40 | "type": "i64", |
| 41 | "value": "2" |
| 42 | } |
| 43 | ] |
| 44 | } |
| 45 | }, |
| 46 | { |
| 47 | "type": "assert_return", |
| 48 | "line": 24, |
| 49 | "action": { |
| 50 | "type": "invoke", |
| 51 | "field": "load1", |
| 52 | "args": [ |
| 53 | { |
| 54 | "type": "i32", |
| 55 | "value": "0" |
| 56 | } |
| 57 | ] |
| 58 | }, |
| 59 | "expected": [ |
| 60 | { |
| 61 | "type": "i64", |
| 62 | "value": "1" |
| 63 | } |
| 64 | ] |
| 65 | }, |
| 66 | { |
| 67 | "type": "assert_return", |
| 68 | "line": 25, |
| 69 | "action": { |
| 70 | "type": "invoke", |
| 71 | "field": "load2", |
| 72 | "args": [ |
| 73 | { |
| 74 | "type": "i32", |
| 75 | "value": "0" |
| 76 | } |
| 77 | ] |
| 78 | }, |
| 79 | "expected": [ |
| 80 | { |
| 81 | "type": "i64", |
| 82 | "value": "2" |
| 83 | } |
| 84 | ] |
| 85 | } |
| 86 | ] |
| 87 | } |