diff --git a/ml-proto/test/expected-output/start.wast.log b/ml-proto/test/expected-output/start.wast.log new file mode 100644 index 0000000000..f74aa5848a --- /dev/null +++ b/ml-proto/test/expected-output/start.wast.log @@ -0,0 +1,2 @@ +1 : i32 +2 : i32 diff --git a/ml-proto/test/start.wast b/ml-proto/test/start.wast index 791614e955..2d8bb811fc 100644 --- a/ml-proto/test/start.wast +++ b/ml-proto/test/start.wast @@ -73,3 +73,17 @@ (assert_return (invoke "get") (i32.const 69)) (invoke "inc") (assert_return (invoke "get") (i32.const 70)) + +(module + (import $print_i32 "spectest" "print" (param i32)) + (func $main + (call_import $print_i32 (i32.const 1))) + (start 0) +) + +(module + (import $print_i32 "spectest" "print" (param i32)) + (func $main + (call_import $print_i32 (i32.const 2))) + (start $main) +)