| 1 |
{ |
| 2 |
"source_filename": "tests/cli/component-model-gc/primitive-types.wast", |
| 3 |
"commands": [ |
| 4 |
{ |
| 5 |
"type": "module", |
| 6 |
"line": 5, |
| 7 |
"filename": "primitive-types.0.wasm", |
| 8 |
"module_type": "binary" |
| 9 |
}, |
| 10 |
{ |
| 11 |
"type": "assert_invalid", |
| 12 |
"line": 12, |
| 13 |
"filename": "primitive-types.1.wasm", |
| 14 |
"module_type": "binary", |
| 15 |
"text": "expected to lower component `bool` type to core `i32` type, found `anyref`" |
| 16 |
}, |
| 17 |
{ |
| 18 |
"type": "module", |
| 19 |
"line": 20, |
| 20 |
"filename": "primitive-types.2.wasm", |
| 21 |
"module_type": "binary" |
| 22 |
}, |
| 23 |
{ |
| 24 |
"type": "assert_invalid", |
| 25 |
"line": 28, |
| 26 |
"filename": "primitive-types.3.wasm", |
| 27 |
"module_type": "binary", |
| 28 |
"text": "expected to lower component `bool` type to core `i8` type, found `i32`" |
| 29 |
}, |
| 30 |
{ |
| 31 |
"type": "module", |
| 32 |
"line": 39, |
| 33 |
"filename": "primitive-types.4.wasm", |
| 34 |
"module_type": "binary" |
| 35 |
}, |
| 36 |
{ |
| 37 |
"type": "assert_invalid", |
| 38 |
"line": 46, |
| 39 |
"filename": "primitive-types.5.wasm", |
| 40 |
"module_type": "binary", |
| 41 |
"text": "expected to lower component `u8` type to core `i32` type, found `anyref`" |
| 42 |
}, |
| 43 |
{ |
| 44 |
"type": "module", |
| 45 |
"line": 54, |
| 46 |
"filename": "primitive-types.6.wasm", |
| 47 |
"module_type": "binary" |
| 48 |
}, |
| 49 |
{ |
| 50 |
"type": "assert_invalid", |
| 51 |
"line": 62, |
| 52 |
"filename": "primitive-types.7.wasm", |
| 53 |
"module_type": "binary", |
| 54 |
"text": "expected to lower component `u8` type to core `i8` type, found `i32`" |
| 55 |
}, |
| 56 |
{ |
| 57 |
"type": "module", |
| 58 |
"line": 73, |
| 59 |
"filename": "primitive-types.8.wasm", |
| 60 |
"module_type": "binary" |
| 61 |
}, |
| 62 |
{ |
| 63 |
"type": "assert_invalid", |
| 64 |
"line": 80, |
| 65 |
"filename": "primitive-types.9.wasm", |
| 66 |
"module_type": "binary", |
| 67 |
"text": "expected to lower component `s8` type to core `i32` type, found `anyref`" |
| 68 |
}, |
| 69 |
{ |
| 70 |
"type": "module", |
| 71 |
"line": 88, |
| 72 |
"filename": "primitive-types.10.wasm", |
| 73 |
"module_type": "binary" |
| 74 |
}, |
| 75 |
{ |
| 76 |
"type": "assert_invalid", |
| 77 |
"line": 96, |
| 78 |
"filename": "primitive-types.11.wasm", |
| 79 |
"module_type": "binary", |
| 80 |
"text": "expected to lower component `s8` type to core `i8` type, found `i32`" |
| 81 |
}, |
| 82 |
{ |
| 83 |
"type": "module", |
| 84 |
"line": 107, |
| 85 |
"filename": "primitive-types.12.wasm", |
| 86 |
"module_type": "binary" |
| 87 |
}, |
| 88 |
{ |
| 89 |
"type": "assert_invalid", |
| 90 |
"line": 114, |
| 91 |
"filename": "primitive-types.13.wasm", |
| 92 |
"module_type": "binary", |
| 93 |
"text": "expected to lower component `u16` type to core `i32` type, found `anyref`" |
| 94 |
}, |
| 95 |
{ |
| 96 |
"type": "module", |
| 97 |
"line": 122, |
| 98 |
"filename": "primitive-types.14.wasm", |
| 99 |
"module_type": "binary" |
| 100 |
}, |
| 101 |
{ |
| 102 |
"type": "assert_invalid", |
| 103 |
"line": 130, |
| 104 |
"filename": "primitive-types.15.wasm", |
| 105 |
"module_type": "binary", |
| 106 |
"text": "expected to lower component `u16` type to core `i16` type, found `i32`" |
| 107 |
}, |
| 108 |
{ |
| 109 |
"type": "module", |
| 110 |
"line": 141, |
| 111 |
"filename": "primitive-types.16.wasm", |
| 112 |
"module_type": "binary" |
| 113 |
}, |
| 114 |
{ |
| 115 |
"type": "assert_invalid", |
| 116 |
"line": 148, |
| 117 |
"filename": "primitive-types.17.wasm", |
| 118 |
"module_type": "binary", |
| 119 |
"text": "expected to lower component `s16` type to core `i32` type, found `anyref`" |
| 120 |
}, |
| 121 |
{ |
| 122 |
"type": "module", |
| 123 |
"line": 156, |
| 124 |
"filename": "primitive-types.18.wasm", |
| 125 |
"module_type": "binary" |
| 126 |
}, |
| 127 |
{ |
| 128 |
"type": "assert_invalid", |
| 129 |
"line": 164, |
| 130 |
"filename": "primitive-types.19.wasm", |
| 131 |
"module_type": "binary", |
| 132 |
"text": "expected to lower component `s16` type to core `i16` type, found `i32`" |
| 133 |
}, |
| 134 |
{ |
| 135 |
"type": "module", |
| 136 |
"line": 175, |
| 137 |
"filename": "primitive-types.20.wasm", |
| 138 |
"module_type": "binary" |
| 139 |
}, |
| 140 |
{ |
| 141 |
"type": "assert_invalid", |
| 142 |
"line": 182, |
| 143 |
"filename": "primitive-types.21.wasm", |
| 144 |
"module_type": "binary", |
| 145 |
"text": "expected to lower component `u32` type to core `i32` type, found `anyref`" |
| 146 |
}, |
| 147 |
{ |
| 148 |
"type": "module", |
| 149 |
"line": 190, |
| 150 |
"filename": "primitive-types.22.wasm", |
| 151 |
"module_type": "binary" |
| 152 |
}, |
| 153 |
{ |
| 154 |
"type": "assert_invalid", |
| 155 |
"line": 198, |
| 156 |
"filename": "primitive-types.23.wasm", |
| 157 |
"module_type": "binary", |
| 158 |
"text": "expected to lower component `u32` type to core `i32` type, found `anyref`" |
| 159 |
}, |
| 160 |
{ |
| 161 |
"type": "module", |
| 162 |
"line": 209, |
| 163 |
"filename": "primitive-types.24.wasm", |
| 164 |
"module_type": "binary" |
| 165 |
}, |
| 166 |
{ |
| 167 |
"type": "assert_invalid", |
| 168 |
"line": 216, |
| 169 |
"filename": "primitive-types.25.wasm", |
| 170 |
"module_type": "binary", |
| 171 |
"text": "expected to lower component `s32` type to core `i32` type, found `anyref`" |
| 172 |
}, |
| 173 |
{ |
| 174 |
"type": "module", |
| 175 |
"line": 224, |
| 176 |
"filename": "primitive-types.26.wasm", |
| 177 |
"module_type": "binary" |
| 178 |
}, |
| 179 |
{ |
| 180 |
"type": "assert_invalid", |
| 181 |
"line": 232, |
| 182 |
"filename": "primitive-types.27.wasm", |
| 183 |
"module_type": "binary", |
| 184 |
"text": "expected to lower component `s32` type to core `i32` type, found `anyref`" |
| 185 |
}, |
| 186 |
{ |
| 187 |
"type": "module", |
| 188 |
"line": 243, |
| 189 |
"filename": "primitive-types.28.wasm", |
| 190 |
"module_type": "binary" |
| 191 |
}, |
| 192 |
{ |
| 193 |
"type": "assert_invalid", |
| 194 |
"line": 250, |
| 195 |
"filename": "primitive-types.29.wasm", |
| 196 |
"module_type": "binary", |
| 197 |
"text": "expected to lower component `u64` type to core `i64` type, found `anyref`" |
| 198 |
}, |
| 199 |
{ |
| 200 |
"type": "module", |
| 201 |
"line": 258, |
| 202 |
"filename": "primitive-types.30.wasm", |
| 203 |
"module_type": "binary" |
| 204 |
}, |
| 205 |
{ |
| 206 |
"type": "assert_invalid", |
| 207 |
"line": 266, |
| 208 |
"filename": "primitive-types.31.wasm", |
| 209 |
"module_type": "binary", |
| 210 |
"text": "expected to lower component `u64` type to core `i64` type, found `anyref`" |
| 211 |
}, |
| 212 |
{ |
| 213 |
"type": "module", |
| 214 |
"line": 277, |
| 215 |
"filename": "primitive-types.32.wasm", |
| 216 |
"module_type": "binary" |
| 217 |
}, |
| 218 |
{ |
| 219 |
"type": "assert_invalid", |
| 220 |
"line": 284, |
| 221 |
"filename": "primitive-types.33.wasm", |
| 222 |
"module_type": "binary", |
| 223 |
"text": "expected to lower component `s64` type to core `i64` type, found `anyref`" |
| 224 |
}, |
| 225 |
{ |
| 226 |
"type": "module", |
| 227 |
"line": 292, |
| 228 |
"filename": "primitive-types.34.wasm", |
| 229 |
"module_type": "binary" |
| 230 |
}, |
| 231 |
{ |
| 232 |
"type": "assert_invalid", |
| 233 |
"line": 300, |
| 234 |
"filename": "primitive-types.35.wasm", |
| 235 |
"module_type": "binary", |
| 236 |
"text": "expected to lower component `s64` type to core `i64` type, found `anyref`" |
| 237 |
}, |
| 238 |
{ |
| 239 |
"type": "module", |
| 240 |
"line": 311, |
| 241 |
"filename": "primitive-types.36.wasm", |
| 242 |
"module_type": "binary" |
| 243 |
}, |
| 244 |
{ |
| 245 |
"type": "assert_invalid", |
| 246 |
"line": 318, |
| 247 |
"filename": "primitive-types.37.wasm", |
| 248 |
"module_type": "binary", |
| 249 |
"text": "expected to lower component `f32` type to core `f32` type, found `anyref`" |
| 250 |
}, |
| 251 |
{ |
| 252 |
"type": "module", |
| 253 |
"line": 326, |
| 254 |
"filename": "primitive-types.38.wasm", |
| 255 |
"module_type": "binary" |
| 256 |
}, |
| 257 |
{ |
| 258 |
"type": "assert_invalid", |
| 259 |
"line": 334, |
| 260 |
"filename": "primitive-types.39.wasm", |
| 261 |
"module_type": "binary", |
| 262 |
"text": "expected to lower component `f32` type to core `f32` type, found `anyref`" |
| 263 |
}, |
| 264 |
{ |
| 265 |
"type": "module", |
| 266 |
"line": 345, |
| 267 |
"filename": "primitive-types.40.wasm", |
| 268 |
"module_type": "binary" |
| 269 |
}, |
| 270 |
{ |
| 271 |
"type": "assert_invalid", |
| 272 |
"line": 352, |
| 273 |
"filename": "primitive-types.41.wasm", |
| 274 |
"module_type": "binary", |
| 275 |
"text": "expected to lower component `f64` type to core `f64` type, found `anyref`" |
| 276 |
}, |
| 277 |
{ |
| 278 |
"type": "module", |
| 279 |
"line": 360, |
| 280 |
"filename": "primitive-types.42.wasm", |
| 281 |
"module_type": "binary" |
| 282 |
}, |
| 283 |
{ |
| 284 |
"type": "assert_invalid", |
| 285 |
"line": 368, |
| 286 |
"filename": "primitive-types.43.wasm", |
| 287 |
"module_type": "binary", |
| 288 |
"text": "expected to lower component `f64` type to core `f64` type, found `anyref`" |
| 289 |
}, |
| 290 |
{ |
| 291 |
"type": "module", |
| 292 |
"line": 379, |
| 293 |
"filename": "primitive-types.44.wasm", |
| 294 |
"module_type": "binary" |
| 295 |
}, |
| 296 |
{ |
| 297 |
"type": "assert_invalid", |
| 298 |
"line": 386, |
| 299 |
"filename": "primitive-types.45.wasm", |
| 300 |
"module_type": "binary", |
| 301 |
"text": "expected to lower component `char` type to core `i32` type, found `anyref`" |
| 302 |
}, |
| 303 |
{ |
| 304 |
"type": "module", |
| 305 |
"line": 394, |
| 306 |
"filename": "primitive-types.46.wasm", |
| 307 |
"module_type": "binary" |
| 308 |
}, |
| 309 |
{ |
| 310 |
"type": "assert_invalid", |
| 311 |
"line": 402, |
| 312 |
"filename": "primitive-types.47.wasm", |
| 313 |
"module_type": "binary", |
| 314 |
"text": "expected to lower component `char` type to core `i32` type, found `anyref`" |
| 315 |
}, |
| 316 |
{ |
| 317 |
"type": "module", |
| 318 |
"line": 413, |
| 319 |
"filename": "primitive-types.48.wasm", |
| 320 |
"module_type": "binary" |
| 321 |
}, |
| 322 |
{ |
| 323 |
"type": "assert_invalid", |
| 324 |
"line": 421, |
| 325 |
"filename": "primitive-types.49.wasm", |
| 326 |
"module_type": "binary", |
| 327 |
"text": "expected to lower component `string` type to core `(ref null? (array (mut? i8)))` type, found `anyref`" |
| 328 |
}, |
| 329 |
{ |
| 330 |
"type": "module", |
| 331 |
"line": 429, |
| 332 |
"filename": "primitive-types.50.wasm", |
| 333 |
"module_type": "binary" |
| 334 |
}, |
| 335 |
{ |
| 336 |
"type": "assert_invalid", |
| 337 |
"line": 438, |
| 338 |
"filename": "primitive-types.51.wasm", |
| 339 |
"module_type": "binary", |
| 340 |
"text": "expected to lower component `string` type to core `(ref null? (array (mut? i8)))` type, found `anyref`" |
| 341 |
}, |
| 342 |
{ |
| 343 |
"type": "module", |
| 344 |
"line": 449, |
| 345 |
"filename": "primitive-types.52.wasm", |
| 346 |
"module_type": "binary" |
| 347 |
}, |
| 348 |
{ |
| 349 |
"type": "assert_invalid", |
| 350 |
"line": 457, |
| 351 |
"filename": "primitive-types.53.wasm", |
| 352 |
"module_type": "binary", |
| 353 |
"text": "expected to lower component `string` type to core `(ref null? (array (mut? i16)))` type, found `anyref`" |
| 354 |
}, |
| 355 |
{ |
| 356 |
"type": "module", |
| 357 |
"line": 465, |
| 358 |
"filename": "primitive-types.54.wasm", |
| 359 |
"module_type": "binary" |
| 360 |
}, |
| 361 |
{ |
| 362 |
"type": "assert_invalid", |
| 363 |
"line": 474, |
| 364 |
"filename": "primitive-types.55.wasm", |
| 365 |
"module_type": "binary", |
| 366 |
"text": "expected to lower component `string` type to core `(ref null? (array (mut? i16)))` type, found `anyref`" |
| 367 |
}, |
| 368 |
{ |
| 369 |
"type": "module", |
| 370 |
"line": 485, |
| 371 |
"filename": "primitive-types.56.wasm", |
| 372 |
"module_type": "binary" |
| 373 |
}, |
| 374 |
{ |
| 375 |
"type": "assert_invalid", |
| 376 |
"line": 493, |
| 377 |
"filename": "primitive-types.57.wasm", |
| 378 |
"module_type": "binary", |
| 379 |
"text": "expected to lower component `string` type to core `(ref null? (array (mut? i8)))` type, found `anyref`" |
| 380 |
}, |
| 381 |
{ |
| 382 |
"type": "module", |
| 383 |
"line": 501, |
| 384 |
"filename": "primitive-types.58.wasm", |
| 385 |
"module_type": "binary" |
| 386 |
}, |
| 387 |
{ |
| 388 |
"type": "assert_invalid", |
| 389 |
"line": 510, |
| 390 |
"filename": "primitive-types.59.wasm", |
| 391 |
"module_type": "binary", |
| 392 |
"text": "expected to lower component `string` type to core `(ref null? (array (mut? i8)))` type, found `anyref`" |
| 393 |
} |
| 394 |
] |
| 395 |
} |