diff options
author | Yann Herklotz <ymherklotz@gmail.com> | 2017-03-22 14:17:29 +0000 |
---|---|---|
committer | Yann Herklotz <ymherklotz@gmail.com> | 2017-03-22 14:17:29 +0000 |
commit | f12ccd62ecf08774ce599a2e15d9042500d2760a (patch) | |
tree | 12012ae296025441c3329e23a7290732cf33c36c /test_deliverable/testcases/test_BREAK.c | |
parent | 190b7a0e5d45367230795ac0bdf6fc2f248ba9e1 (diff) | |
download | Compiler-f12ccd62ecf08774ce599a2e15d9042500d2760a.tar.gz Compiler-f12ccd62ecf08774ce599a2e15d9042500d2760a.zip |
Adding test and break working
Diffstat (limited to 'test_deliverable/testcases/test_BREAK.c')
-rw-r--r-- | test_deliverable/testcases/test_BREAK.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test_deliverable/testcases/test_BREAK.c b/test_deliverable/testcases/test_BREAK.c new file mode 100644 index 0000000..c63ced3 --- /dev/null +++ b/test_deliverable/testcases/test_BREAK.c @@ -0,0 +1,13 @@ +int iterate(int a, int b) +{ + while(a < b) + { + if(a == b / 2) + { + break; + } + ++a; + } + + return a; +} |