summaryrefslogtreecommitdiff
path: root/test/lit/parse-bad-tuple-extract-index.wast
blob: 7124bce238e350234d6e89b8b6942444cb640ce6 (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  2 ( i32.const 0 ) ( i64.const 1 ) ) ) (at 9:17)]

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