aboutsummaryrefslogtreecommitdiffstats
path: root/test/monniaux/cse2/loopload.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/monniaux/cse2/loopload.c')
-rw-r--r--test/monniaux/cse2/loopload.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/monniaux/cse2/loopload.c b/test/monniaux/cse2/loopload.c
new file mode 100644
index 00000000..6e0925f7
--- /dev/null
+++ b/test/monniaux/cse2/loopload.c
@@ -0,0 +1,5 @@
+int find_index(int *t, int n) {
+ if (t[0] > 0) return 3;
+ while (n > 0) n--;
+ return t[0];
+}