summaryrefslogtreecommitdiff
path: root/test/regress/recursion-issue.txt
blob: a5fa660b27fc8b1b4fdaacf7170c847eba0322e3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
;;; TOOL: run-interp-spec
;;; NOTE: ref: issue-2398
(module
  (type $out-i32 (func (result i32)))

  (table funcref
    (elem
      $runaway-with-return
    )
  )

  (func $runaway-with-return (export "runaway-with-return") (type $out-i32)
    (call_indirect (type $out-i32) (i32.const 0))
  )
)

(assert_exhaustion (invoke "runaway-with-return") "call stack exhausted")
(;; STDOUT ;;;
2/2 tests passed.
;;; STDOUT ;;)