diff options
author | Yann Herklotz <git@yannherklotz.com> | 2020-04-02 14:53:39 +0100 |
---|---|---|
committer | Yann Herklotz <git@yannherklotz.com> | 2020-04-02 14:53:39 +0100 |
commit | 7a76e9d632756a4d3f044d6742a5defb83ce6ae7 (patch) | |
tree | 2cb909cfe974953c019f120e06101e686402ba07 /test/loop.c | |
parent | b22dfebd3a1638c431e9ab32fac391aa95f846eb (diff) | |
download | vericert-kvx-7a76e9d632756a4d3f044d6742a5defb83ce6ae7.tar.gz vericert-kvx-7a76e9d632756a4d3f044d6742a5defb83ce6ae7.zip |
Add tests
Diffstat (limited to 'test/loop.c')
-rw-r--r-- | test/loop.c | 10 |
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; +} |