summaryrefslogtreecommitdiff
path: root/test/spec/start.txt
blob: 41deaa98cea9114c883418833de9f4dee0d8d8c5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
;;; TOOL: run-interp-spec
;;; STDIN_FILE: third_party/testsuite/start.wast
(;; STDOUT ;;;
assert_invalid error:
  third_party/testsuite/start.wast:2:25: function variable out of range (max 1)
  (module (func) (start 1))
                        ^
assert_invalid error:
  third_party/testsuite/start.wast:8:5: start function must not return anything
    (start $main)
    ^^^^^^^^^^^^^
assert_invalid error:
  third_party/testsuite/start.wast:15:5: start function must be nullary
    (start $main)
    ^^^^^^^^^^^^^
inc() =>
inc() =>
inc() =>
inc() =>
called host spectest.print(i32:1) =>
called host spectest.print(i32:2) =>
11/11 tests passed.
;;; STDOUT ;;)