| 1 |
{ |
| 2 |
"source_filename": "tests/testsuite/proposals/wasm-3.0/type-rec.wast", |
| 3 |
"commands": [ |
| 4 |
{ |
| 5 |
"type": "module", |
| 6 |
"line": 3, |
| 7 |
"filename": "type-rec.0.wasm", |
| 8 |
"module_type": "binary" |
| 9 |
}, |
| 10 |
{ |
| 11 |
"type": "assert_invalid", |
| 12 |
"line": 22, |
| 13 |
"filename": "type-rec.1.wasm", |
| 14 |
"module_type": "binary", |
| 15 |
"text": "unknown type" |
| 16 |
}, |
| 17 |
{ |
| 18 |
"type": "assert_invalid", |
| 19 |
"line": 29, |
| 20 |
"filename": "type-rec.2.wasm", |
| 21 |
"module_type": "binary", |
| 22 |
"text": "unknown type" |
| 23 |
}, |
| 24 |
{ |
| 25 |
"type": "module", |
| 26 |
"line": 39, |
| 27 |
"filename": "type-rec.3.wasm", |
| 28 |
"module_type": "binary" |
| 29 |
}, |
| 30 |
{ |
| 31 |
"type": "module", |
| 32 |
"line": 46, |
| 33 |
"filename": "type-rec.4.wasm", |
| 34 |
"module_type": "binary" |
| 35 |
}, |
| 36 |
{ |
| 37 |
"type": "assert_invalid", |
| 38 |
"line": 62, |
| 39 |
"filename": "type-rec.5.wasm", |
| 40 |
"module_type": "binary", |
| 41 |
"text": "type mismatch" |
| 42 |
}, |
| 43 |
{ |
| 44 |
"type": "assert_invalid", |
| 45 |
"line": 72, |
| 46 |
"filename": "type-rec.6.wasm", |
| 47 |
"module_type": "binary", |
| 48 |
"text": "type mismatch" |
| 49 |
}, |
| 50 |
{ |
| 51 |
"type": "assert_invalid", |
| 52 |
"line": 83, |
| 53 |
"filename": "type-rec.7.wasm", |
| 54 |
"module_type": "binary", |
| 55 |
"text": "type mismatch" |
| 56 |
}, |
| 57 |
{ |
| 58 |
"type": "assert_invalid", |
| 59 |
"line": 93, |
| 60 |
"filename": "type-rec.8.wasm", |
| 61 |
"module_type": "binary", |
| 62 |
"text": "type mismatch" |
| 63 |
}, |
| 64 |
{ |
| 65 |
"type": "module", |
| 66 |
"line": 105, |
| 67 |
"name": "M", |
| 68 |
"filename": "type-rec.9.wasm", |
| 69 |
"module_type": "binary" |
| 70 |
}, |
| 71 |
{ |
| 72 |
"type": "register", |
| 73 |
"line": 109, |
| 74 |
"name": "M", |
| 75 |
"as": "M" |
| 76 |
}, |
| 77 |
{ |
| 78 |
"type": "module", |
| 79 |
"line": 111, |
| 80 |
"filename": "type-rec.10.wasm", |
| 81 |
"module_type": "binary" |
| 82 |
}, |
| 83 |
{ |
| 84 |
"type": "assert_unlinkable", |
| 85 |
"line": 117, |
| 86 |
"filename": "type-rec.11.wasm", |
| 87 |
"module_type": "binary", |
| 88 |
"text": "incompatible import type" |
| 89 |
}, |
| 90 |
{ |
| 91 |
"type": "assert_unlinkable", |
| 92 |
"line": 125, |
| 93 |
"filename": "type-rec.12.wasm", |
| 94 |
"module_type": "binary", |
| 95 |
"text": "incompatible import type" |
| 96 |
}, |
| 97 |
{ |
| 98 |
"type": "module", |
| 99 |
"line": 135, |
| 100 |
"filename": "type-rec.13.wasm", |
| 101 |
"module_type": "binary" |
| 102 |
}, |
| 103 |
{ |
| 104 |
"type": "assert_return", |
| 105 |
"line": 142, |
| 106 |
"action": { |
| 107 |
"type": "invoke", |
| 108 |
"field": "run", |
| 109 |
"args": [] |
| 110 |
}, |
| 111 |
"expected": [] |
| 112 |
}, |
| 113 |
{ |
| 114 |
"type": "module", |
| 115 |
"line": 144, |
| 116 |
"filename": "type-rec.14.wasm", |
| 117 |
"module_type": "binary" |
| 118 |
}, |
| 119 |
{ |
| 120 |
"type": "assert_trap", |
| 121 |
"line": 151, |
| 122 |
"action": { |
| 123 |
"type": "invoke", |
| 124 |
"field": "run", |
| 125 |
"args": [] |
| 126 |
}, |
| 127 |
"text": "indirect call type mismatch" |
| 128 |
}, |
| 129 |
{ |
| 130 |
"type": "module", |
| 131 |
"line": 153, |
| 132 |
"filename": "type-rec.15.wasm", |
| 133 |
"module_type": "binary" |
| 134 |
}, |
| 135 |
{ |
| 136 |
"type": "assert_trap", |
| 137 |
"line": 160, |
| 138 |
"action": { |
| 139 |
"type": "invoke", |
| 140 |
"field": "run", |
| 141 |
"args": [] |
| 142 |
}, |
| 143 |
"text": "indirect call type mismatch" |
| 144 |
}, |
| 145 |
{ |
| 146 |
"type": "module", |
| 147 |
"line": 165, |
| 148 |
"filename": "type-rec.16.wasm", |
| 149 |
"module_type": "binary" |
| 150 |
}, |
| 151 |
{ |
| 152 |
"type": "assert_invalid", |
| 153 |
"line": 173, |
| 154 |
"filename": "type-rec.17.wasm", |
| 155 |
"module_type": "binary", |
| 156 |
"text": "type mismatch" |
| 157 |
}, |
| 158 |
{ |
| 159 |
"type": "assert_invalid", |
| 160 |
"line": 185, |
| 161 |
"filename": "type-rec.18.wasm", |
| 162 |
"module_type": "binary", |
| 163 |
"text": "type mismatch" |
| 164 |
} |
| 165 |
] |
| 166 |
} |