From bcde99fbe99174a094f38fdda70ad69d65a423f4 Mon Sep 17 00:00:00 2001 From: Alex AUVOLAT Date: Wed, 30 Apr 2014 17:19:08 +0200 Subject: Fist commit (WIP) --- tests/sources/0508_loop_init.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 tests/sources/0508_loop_init.c (limited to 'tests/sources/0508_loop_init.c') diff --git a/tests/sources/0508_loop_init.c b/tests/sources/0508_loop_init.c new file mode 100644 index 0000000..f0817e5 --- /dev/null +++ b/tests/sources/0508_loop_init.c @@ -0,0 +1,14 @@ +int init; +int x; + +init = 0; +while (rand(0,1)==0) { + if (init == 0) { + x = 0; + init = 1; + } + else { + x = x + 1; + } + assert(x >= 0); +} -- cgit v1.2.3