aboutsummaryrefslogtreecommitdiffstats
path: root/test/monniaux/cse2/loopaccess.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/monniaux/cse2/loopaccess.c')
-rw-r--r--test/monniaux/cse2/loopaccess.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/monniaux/cse2/loopaccess.c b/test/monniaux/cse2/loopaccess.c
new file mode 100644
index 00000000..5ddaeb66
--- /dev/null
+++ b/test/monniaux/cse2/loopaccess.c
@@ -0,0 +1,7 @@
+double toto(double x, int count) {
+ double r = 5*x + 3;
+ while (count > r) {
+ count --;
+ }
+ return 5*x + 3;
+}