summaryrefslogtreecommitdiff
path: root/test/lit/parse-bad-tuple-extract-index.wast
blob: 186bdc56098dfd8357d1de9b8e7b9b65f1745e85 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
;; Test that out-of-bounds tuple.extract indices produce parse errors.

;; RUN: not wasm-opt %s 2>&1 | filecheck %s

;; CHECK: [parse exception: Bad index on tuple.extract: ( tuple.extract 2 ( tuple.make ( i32.const 0 ) ( i64.const 1 ) ) ) (at 9:17)]

(module
 (func
  (tuple.extract 2
   (tuple.make
    (i32.const 0)
    (i64.const 1)
   )
  )
 )
)