summaryrefslogtreecommitdiff
path: root/tests/sources/0507_loop_limit2.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/sources/0507_loop_limit2.c')
-rw-r--r--tests/sources/0507_loop_limit2.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/sources/0507_loop_limit2.c b/tests/sources/0507_loop_limit2.c
new file mode 100644
index 0000000..bafdf77
--- /dev/null
+++ b/tests/sources/0507_loop_limit2.c
@@ -0,0 +1,6 @@
+int x = 0;
+int N = rand(0,1000);
+while (rand(0,1)==0) {
+ if (x < N) x = x + 1;
+}
+print(x);