summaryrefslogtreecommitdiff
path: root/test/unit.fromasm
diff options
context:
space:
mode:
Diffstat (limited to 'test/unit.fromasm')
-rw-r--r--test/unit.fromasm30
1 files changed, 30 insertions, 0 deletions
diff --git a/test/unit.fromasm b/test/unit.fromasm
index 5a6b78de5..4b95dfea1 100644
--- a/test/unit.fromasm
+++ b/test/unit.fromasm
@@ -409,6 +409,36 @@
(i32.const 1)
)
)
+ (func $forLoop
+ (local $i i32)
+ (block
+ (set_local $i
+ (i32.const 1)
+ )
+ (loop $for-out$0 $for-in$1
+ (block
+ (if_else
+ (i32.lt_s
+ (get_local $i)
+ (i32.const 200)
+ )
+ (nop)
+ (br $for-out$0)
+ )
+ (call $h
+ (get_local $i)
+ )
+ (set_local $i
+ (i32.add
+ (get_local $i)
+ (i32.const 1)
+ )
+ )
+ (br $for-in$1)
+ )
+ )
+ )
+ )
(func $z
(nop)
)