From 94981b600c905e3158f3f12a0a33a31d0bd6f0e1 Mon Sep 17 00:00:00 2001 From: bloodstalker Date: Sat, 26 Nov 2016 00:55:03 +0330 Subject: added tdd tests for 13.4 and 13.6 --- test/testFuncs1.c | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) (limited to 'test/testFuncs1.c') diff --git a/test/testFuncs1.c b/test/testFuncs1.c index 1a9dbb2..8971f27 100644 --- a/test/testFuncs1.c +++ b/test/testFuncs1.c @@ -985,5 +985,37 @@ void test26 (void) d = (a <= c); } +void test27(void) +{ + double a; + + for (a = 0.0; a < 10.0; ++a) + {} +} + +void test28(void) +{ + int i; + int j; + int k; + + for (i = 0; i < 10; ++i) + { + i = i + 3; + } + + for (j = 0; j < 20; ++j) + { + j++; + } + + for (k = 0; k < 10; ++k) + { + k = i + j; + --j; + i = j - k; + } +} + /**********************************************************************************************************************/ /*the last line's been intentionally left blank.*/ -- cgit v1.2.3