tests/cli/gc/gc-struct-types-invalid.wast
raw| 1 | ;; RUN: wast --assert default --snapshot tests/snapshots % |
| 2 | |
| 3 | ;; --enable-gc |
| 4 | |
| 5 | (assert_malformed |
| 6 | (module quote |
| 7 | "(type (struct (field $id)))" |
| 8 | ) |
| 9 | "unexpected token" |
| 10 | ) |
| 11 | (assert_malformed |
| 12 | (module quote |
| 13 | "(type (struct (field $id i32 i32)))" |
| 14 | ) |
| 15 | "expected `)`" |
| 16 | ) |
| 17 | (assert_malformed |
| 18 | (module quote |
| 19 | "(type (struct (field i32 $id i32)))" |
| 20 | ) |
| 21 | "unexpected token" |
| 22 | ) |