aboutsummaryrefslogtreecommitdiffstats
path: root/test/loop.c
diff options
context:
space:
mode:
authorYann Herklotz <git@yannherklotz.com>2020-04-02 14:53:39 +0100
committerYann Herklotz <git@yannherklotz.com>2020-04-02 14:53:39 +0100
commit7a76e9d632756a4d3f044d6742a5defb83ce6ae7 (patch)
tree2cb909cfe974953c019f120e06101e686402ba07 /test/loop.c
parentb22dfebd3a1638c431e9ab32fac391aa95f846eb (diff)
downloadvericert-kvx-7a76e9d632756a4d3f044d6742a5defb83ce6ae7.tar.gz
vericert-kvx-7a76e9d632756a4d3f044d6742a5defb83ce6ae7.zip
Add tests
Diffstat (limited to 'test/loop.c')
-rw-r--r--test/loop.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/loop.c b/test/loop.c
new file mode 100644
index 0000000..b459e3a
--- /dev/null
+++ b/test/loop.c
@@ -0,0 +1,10 @@
+int main() {
+ int max = 5;
+ int acc = 0;
+
+ for (int i = 0; i < max; i++) {
+ acc += i;
+ }
+
+ return acc + 2;
+}