summaryrefslogtreecommitdiff
path: root/test/regress/regress-29.txt
blob: 157a21f6927cf5751c2bd35e885a39b40fe7b185 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
;;; TOOL: run-interp
;;; ARGS*: --enable-tail-call
(table funcref (elem $f))
(func $f (result i32) i32.const 65)

(func (export "g") (result i32)
  i32.const 7  ;; extra i32 on stack
  return_call $f
)
(func (export "h") (result i32)
  i32.const 7  ;; extra i32 on stack
  i32.const 0
  return_call_indirect (result i32)
)
(;; STDOUT ;;;
g() => i32:65
h() => i32:65
;;; STDOUT ;;)