summaryrefslogtreecommitdiff
path: root/tests/sources/0503_loop_nondet.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/sources/0503_loop_nondet.c')
-rw-r--r--tests/sources/0503_loop_nondet.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/sources/0503_loop_nondet.c b/tests/sources/0503_loop_nondet.c
new file mode 100644
index 0000000..ab17b7b
--- /dev/null
+++ b/tests/sources/0503_loop_nondet.c
@@ -0,0 +1,5 @@
+int x = 0;
+while (rand(0,1) == 0) {
+ print(x);
+ x = x + 1;
+}