| 1 |
{ |
| 2 |
"source_filename": "tests/cli/component-model/types.wast", |
| 3 |
"commands": [ |
| 4 |
{ |
| 5 |
"type": "assert_invalid", |
| 6 |
"line": 4, |
| 7 |
"filename": "types.0.wasm", |
| 8 |
"module_type": "binary", |
| 9 |
"text": "type index 0 is not a function type" |
| 10 |
}, |
| 11 |
{ |
| 12 |
"type": "assert_invalid", |
| 13 |
"line": 11, |
| 14 |
"filename": "types.1.wasm", |
| 15 |
"module_type": "binary", |
| 16 |
"text": "core type index 0 is not a module type" |
| 17 |
}, |
| 18 |
{ |
| 19 |
"type": "assert_invalid", |
| 20 |
"line": 18, |
| 21 |
"filename": "types.2.wasm", |
| 22 |
"module_type": "binary", |
| 23 |
"text": "type index 0 is not an instance type" |
| 24 |
}, |
| 25 |
{ |
| 26 |
"type": "assert_invalid", |
| 27 |
"line": 25, |
| 28 |
"filename": "types.3.wasm", |
| 29 |
"module_type": "binary", |
| 30 |
"text": "type index 0 is not an instance type" |
| 31 |
}, |
| 32 |
{ |
| 33 |
"type": "assert_invalid", |
| 34 |
"line": 34, |
| 35 |
"filename": "types.4.wasm", |
| 36 |
"module_type": "binary", |
| 37 |
"text": "core type index 0 is not a module type" |
| 38 |
}, |
| 39 |
{ |
| 40 |
"type": "assert_invalid", |
| 41 |
"line": 43, |
| 42 |
"filename": "types.5.wasm", |
| 43 |
"module_type": "binary", |
| 44 |
"text": "type index 0 is not a function type" |
| 45 |
}, |
| 46 |
{ |
| 47 |
"type": "assert_invalid", |
| 48 |
"line": 52, |
| 49 |
"filename": "types.6.wasm", |
| 50 |
"module_type": "binary", |
| 51 |
"text": "module index out of bounds" |
| 52 |
}, |
| 53 |
{ |
| 54 |
"type": "assert_invalid", |
| 55 |
"line": 58, |
| 56 |
"filename": "types.7.wasm", |
| 57 |
"module_type": "binary", |
| 58 |
"text": "instance index out of bounds" |
| 59 |
}, |
| 60 |
{ |
| 61 |
"type": "assert_invalid", |
| 62 |
"line": 64, |
| 63 |
"filename": "types.8.wasm", |
| 64 |
"module_type": "binary", |
| 65 |
"text": "type index out of bounds" |
| 66 |
}, |
| 67 |
{ |
| 68 |
"type": "assert_invalid", |
| 69 |
"line": 72, |
| 70 |
"filename": "types.9.wasm", |
| 71 |
"module_type": "binary", |
| 72 |
"text": "export name `a` already defined" |
| 73 |
}, |
| 74 |
{ |
| 75 |
"type": "assert_invalid", |
| 76 |
"line": 81, |
| 77 |
"filename": "types.10.wasm", |
| 78 |
"module_type": "binary", |
| 79 |
"text": "duplicate import name" |
| 80 |
}, |
| 81 |
{ |
| 82 |
"type": "assert_invalid", |
| 83 |
"line": 90, |
| 84 |
"filename": "types.11.wasm", |
| 85 |
"module_type": "binary", |
| 86 |
"text": "memory size must be at most" |
| 87 |
}, |
| 88 |
{ |
| 89 |
"type": "assert_invalid", |
| 90 |
"line": 98, |
| 91 |
"filename": "types.12.wasm", |
| 92 |
"module_type": "binary", |
| 93 |
"text": "type index out of bounds" |
| 94 |
}, |
| 95 |
{ |
| 96 |
"type": "assert_invalid", |
| 97 |
"line": 106, |
| 98 |
"filename": "types.13.wasm", |
| 99 |
"module_type": "binary", |
| 100 |
"text": "export name `A` conflicts with previous name `a`" |
| 101 |
}, |
| 102 |
{ |
| 103 |
"type": "assert_invalid", |
| 104 |
"line": 115, |
| 105 |
"filename": "types.14.wasm", |
| 106 |
"module_type": "binary", |
| 107 |
"text": "import name `a` conflicts with previous name `A`" |
| 108 |
}, |
| 109 |
{ |
| 110 |
"type": "assert_malformed", |
| 111 |
"line": 124, |
| 112 |
"filename": "types.15.wat", |
| 113 |
"module_type": "text", |
| 114 |
"text": "unknown core type" |
| 115 |
}, |
| 116 |
{ |
| 117 |
"type": "assert_invalid", |
| 118 |
"line": 130, |
| 119 |
"filename": "types.16.wasm", |
| 120 |
"module_type": "binary", |
| 121 |
"text": "type index out of bounds" |
| 122 |
}, |
| 123 |
{ |
| 124 |
"type": "module", |
| 125 |
"line": 137, |
| 126 |
"name": "c", |
| 127 |
"filename": "types.17.wasm", |
| 128 |
"module_type": "binary" |
| 129 |
}, |
| 130 |
{ |
| 131 |
"type": "assert_malformed", |
| 132 |
"line": 145, |
| 133 |
"filename": "types.18.wat", |
| 134 |
"module_type": "text", |
| 135 |
"text": "unknown type" |
| 136 |
}, |
| 137 |
{ |
| 138 |
"type": "assert_invalid", |
| 139 |
"line": 151, |
| 140 |
"filename": "types.19.wasm", |
| 141 |
"module_type": "binary", |
| 142 |
"text": "type index out of bounds" |
| 143 |
}, |
| 144 |
{ |
| 145 |
"type": "assert_invalid", |
| 146 |
"line": 159, |
| 147 |
"filename": "types.20.wasm", |
| 148 |
"module_type": "binary", |
| 149 |
"text": "invalid outer alias count of 100" |
| 150 |
}, |
| 151 |
{ |
| 152 |
"type": "assert_invalid", |
| 153 |
"line": 168, |
| 154 |
"filename": "types.21.wasm", |
| 155 |
"module_type": "binary", |
| 156 |
"text": "name `` already defined" |
| 157 |
}, |
| 158 |
{ |
| 159 |
"type": "assert_invalid", |
| 160 |
"line": 180, |
| 161 |
"filename": "types.22.wasm", |
| 162 |
"module_type": "binary", |
| 163 |
"text": "type index out of bounds" |
| 164 |
}, |
| 165 |
{ |
| 166 |
"type": "assert_invalid", |
| 167 |
"line": 188, |
| 168 |
"filename": "types.23.wasm", |
| 169 |
"module_type": "binary", |
| 170 |
"text": "export name `FOO-bar-BAZ` conflicts with previous name `foo-BAR-baz`" |
| 171 |
}, |
| 172 |
{ |
| 173 |
"type": "assert_malformed", |
| 174 |
"line": 197, |
| 175 |
"filename": "types.24.wat", |
| 176 |
"module_type": "text", |
| 177 |
"text": "unknown type" |
| 178 |
}, |
| 179 |
{ |
| 180 |
"type": "assert_invalid", |
| 181 |
"line": 203, |
| 182 |
"filename": "types.25.wasm", |
| 183 |
"module_type": "binary", |
| 184 |
"text": "type index out of bounds" |
| 185 |
}, |
| 186 |
{ |
| 187 |
"type": "assert_invalid", |
| 188 |
"line": 211, |
| 189 |
"filename": "types.26.wasm", |
| 190 |
"module_type": "binary", |
| 191 |
"text": "invalid outer alias count of 100" |
| 192 |
}, |
| 193 |
{ |
| 194 |
"type": "assert_invalid", |
| 195 |
"line": 220, |
| 196 |
"filename": "types.27.wasm", |
| 197 |
"module_type": "binary", |
| 198 |
"text": "name `` already defined" |
| 199 |
}, |
| 200 |
{ |
| 201 |
"type": "assert_invalid", |
| 202 |
"line": 232, |
| 203 |
"filename": "types.28.wasm", |
| 204 |
"module_type": "binary", |
| 205 |
"text": "function parameter name cannot be empty" |
| 206 |
}, |
| 207 |
{ |
| 208 |
"type": "module", |
| 209 |
"line": 237, |
| 210 |
"filename": "types.29.wasm", |
| 211 |
"module_type": "binary" |
| 212 |
}, |
| 213 |
{ |
| 214 |
"type": "module", |
| 215 |
"line": 241, |
| 216 |
"name": "C", |
| 217 |
"filename": "types.30.wasm", |
| 218 |
"module_type": "binary" |
| 219 |
}, |
| 220 |
{ |
| 221 |
"type": "module", |
| 222 |
"line": 249, |
| 223 |
"name": "C", |
| 224 |
"filename": "types.31.wasm", |
| 225 |
"module_type": "binary" |
| 226 |
}, |
| 227 |
{ |
| 228 |
"type": "module", |
| 229 |
"line": 259, |
| 230 |
"name": "C", |
| 231 |
"filename": "types.32.wasm", |
| 232 |
"module_type": "binary" |
| 233 |
}, |
| 234 |
{ |
| 235 |
"type": "module", |
| 236 |
"line": 269, |
| 237 |
"filename": "types.33.wasm", |
| 238 |
"module_type": "binary" |
| 239 |
}, |
| 240 |
{ |
| 241 |
"type": "module", |
| 242 |
"line": 276, |
| 243 |
"filename": "types.34.wasm", |
| 244 |
"module_type": "binary" |
| 245 |
}, |
| 246 |
{ |
| 247 |
"type": "assert_invalid", |
| 248 |
"line": 285, |
| 249 |
"filename": "types.35.wasm", |
| 250 |
"module_type": "binary", |
| 251 |
"text": "variant type must have at least one case" |
| 252 |
}, |
| 253 |
{ |
| 254 |
"type": "assert_invalid", |
| 255 |
"line": 291, |
| 256 |
"filename": "types.36.wasm", |
| 257 |
"module_type": "binary", |
| 258 |
"text": "enum type must have at least one variant" |
| 259 |
}, |
| 260 |
{ |
| 261 |
"type": "assert_invalid", |
| 262 |
"line": 297, |
| 263 |
"filename": "types.37.wasm", |
| 264 |
"module_type": "binary", |
| 265 |
"text": "record type must have at least one field" |
| 266 |
}, |
| 267 |
{ |
| 268 |
"type": "assert_invalid", |
| 269 |
"line": 303, |
| 270 |
"filename": "types.38.wasm", |
| 271 |
"module_type": "binary", |
| 272 |
"text": "flags must have at least one entry" |
| 273 |
}, |
| 274 |
{ |
| 275 |
"type": "assert_invalid", |
| 276 |
"line": 309, |
| 277 |
"filename": "types.39.wasm", |
| 278 |
"module_type": "binary", |
| 279 |
"text": "tuple type must have at least one type" |
| 280 |
}, |
| 281 |
{ |
| 282 |
"type": "module", |
| 283 |
"line": 314, |
| 284 |
"name": "c", |
| 285 |
"filename": "types.40.wasm", |
| 286 |
"module_type": "binary" |
| 287 |
}, |
| 288 |
{ |
| 289 |
"type": "assert_invalid", |
| 290 |
"line": 324, |
| 291 |
"filename": "types.41.wasm", |
| 292 |
"module_type": "binary", |
| 293 |
"text": "cannot have more than 32 flags" |
| 294 |
}, |
| 295 |
{ |
| 296 |
"type": "module", |
| 297 |
"line": 364, |
| 298 |
"filename": "types.42.wasm", |
| 299 |
"module_type": "binary" |
| 300 |
}, |
| 301 |
{ |
| 302 |
"type": "assert_invalid", |
| 303 |
"line": 393, |
| 304 |
"filename": "types.43.wasm", |
| 305 |
"module_type": "binary", |
| 306 |
"text": "type index 0 is a module type" |
| 307 |
}, |
| 308 |
{ |
| 309 |
"type": "assert_invalid", |
| 310 |
"line": 400, |
| 311 |
"filename": "types.44.wasm", |
| 312 |
"module_type": "binary", |
| 313 |
"text": "type index out of bounds" |
| 314 |
} |
| 315 |
] |
| 316 |
} |