summaryrefslogtreecommitdiff
path: root/test/spec/start.txt
blob: 0c7279abdfa64f65f22cfa2be28e5acdd6fac6c4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
;;; 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:9:5: start function must not return anything
    (start $main)
    ^^^^^^^^^^^^^
assert_invalid error:
  third_party/testsuite/start.wast:16:5: start function must be nullary
    (start $main)
    ^^^^^^^^^^^^^
inc() =>
inc() =>
inc() =>
inc() =>
called host spectest.print(i32:1) =>
called host spectest.print(i32:2) =>
called host spectest.print() =>
11/11 tests passed.
;;; STDOUT ;;)