summaryrefslogtreecommitdiff
path: root/test/control_flow.txt
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2015-11-01 15:00:34 -0800
committerAlon Zakai <alonzakai@gmail.com>2015-11-01 15:00:34 -0800
commitdd26c6de358b78900bb4780f7fa640812776d129 (patch)
treece8fa7e4e4e8dcfa88314e01cd4e4b65741832d6 /test/control_flow.txt
parent0da541c634a8c72c9ee5af8f2546a541ba7c5aae (diff)
downloadbinaryen-dd26c6de358b78900bb4780f7fa640812776d129.tar.gz
binaryen-dd26c6de358b78900bb4780f7fa640812776d129.tar.bz2
binaryen-dd26c6de358b78900bb4780f7fa640812776d129.zip
add control flow tests
Diffstat (limited to 'test/control_flow.txt')
-rw-r--r--test/control_flow.txt35
1 files changed, 35 insertions, 0 deletions
diff --git a/test/control_flow.txt b/test/control_flow.txt
new file mode 100644
index 000000000..e3ef200d9
--- /dev/null
+++ b/test/control_flow.txt
@@ -0,0 +1,35 @@
+if
+ 1 ==> 2
+ 2 ==> 3
+ 3 ==> 4
+ 4 ==> 5
+ 11 ==> 11
+ 90 ==> 90
+loop
+ 1 ==> 128
+ 2 ==> 128
+ 3 ==> 192
+ 4 ==> 128
+ 11 ==> 176
+ 90 ==> 180
+loop_break
+ 1 ==> 62
+ 2 ==> 46
+ 3 ==> 62
+ 4 ==> 38
+ 11 ==> 46
+ 90 ==> 180
+loop_continue
+ 1 ==> 124
+ 2 ==> 184
+ 3 ==> 124
+ 4 ==> 152
+ 11 ==> 184
+ 90 ==> 180
+do_loop
+ 1 ==> 121
+ 2 ==> 121
+ 3 ==> 185
+ 4 ==> 121
+ 11 ==> 169
+ 90 ==> 179