From 7a76e9d632756a4d3f044d6742a5defb83ce6ae7 Mon Sep 17 00:00:00 2001 From: Yann Herklotz Date: Thu, 2 Apr 2020 14:53:39 +0100 Subject: Add tests --- test/loop.c | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 test/loop.c (limited to 'test/loop.c') 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; +} -- cgit