summaryrefslogtreecommitdiff
path: root/test/regress/regress-4.txt
blob: ab0d0bc3f4f476e85cdf0acfa0c252da6ca99723 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
;;; TOOL: wat2wasm
;;; ERROR: 1
;; bug where looking up an undefined name would not produce an error if there
;; was any name at all.
(module
  (func (param $p i32)
    (local.get $n)))
(;; STDERR ;;;
out/test/regress/regress-4.txt:7:16: error: undefined local variable "$n"
    (local.get $n)))
               ^^
;;; STDERR ;;)