summaryrefslogtreecommitdiff
path: root/test/lit/validation/bulk.wast
blob: d53dae2649f102af6e0c8cefcdb3ab61eec4bc14 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
;; Test for a validation error on bad usage of call.without.effects

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

;; CHECK: data.drop segment index out of bounds

(module
 (memory $0 16)
 (func $1
  (data.drop 1)
  (unreachable)
 )
)