summaryrefslogtreecommitdiff
path: root/test/parse/expr/loop-multi.txt
diff options
context:
space:
mode:
Diffstat (limited to 'test/parse/expr/loop-multi.txt')
-rw-r--r--test/parse/expr/loop-multi.txt20
1 files changed, 20 insertions, 0 deletions
diff --git a/test/parse/expr/loop-multi.txt b/test/parse/expr/loop-multi.txt
new file mode 100644
index 00000000..fdbbfa87
--- /dev/null
+++ b/test/parse/expr/loop-multi.txt
@@ -0,0 +1,20 @@
+;;; TOOL: wat2wasm
+;;; ARGS: --enable-multi-value
+(module
+ ;; loop w/ multiple results
+ (func
+ loop (result i32 i64)
+ i32.const 0
+ i64.const 0
+ end
+ return)
+
+ ;; loop w/ params
+ (func
+ i64.const 0
+ loop (param i64) (result i32)
+ drop
+ i32.const 1
+ end
+ return)
+)