summaryrefslogtreecommitdiff
path: root/test/interp/call-zero-args.txt
blob: b6ffd4a9b245165348d32b3dca6190a7ccab14b7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
;;; TOOL: run-interp
(module
  (func $f (result i32)
    i32.const 42)

  (func $g (param i32 i32) (result i32)
    get_local 0
    get_local 1
    i32.add)

  (func (export "h") (result i32)
    i32.const 1
    call $f
    call $g))
(;; STDOUT ;;;
h() => i32:43
;;; STDOUT ;;)