Files
binaryen/test/lit/parse-bad-tuple-extract-index.wast
Jérôme Vouillon f3462570f4 WAT parser: include file name in error messages (#7318)
This is especially useful with `wasm-merge` which takes several file as
inputs.
2025-02-24 10:11:50 -08:00

17 lines
283 B
Plaintext

;; Test that out-of-bounds tuple.extract indices produce parse errors.
;; RUN: not wasm-opt %s 2>&1 | filecheck %s
;; CHECK: Fatal: {{.*}}:9:3: error: tuple index out of bounds
(module
(func
(tuple.extract 2 2
(tuple.make 2
(i32.const 0)
(i64.const 1)
)
)
)
)