From b141dd82d05db927cb33adc63e9e8309540143e5 Mon Sep 17 00:00:00 2001 From: bloodstalker Date: Wed, 21 Dec 2016 18:04:27 +0330 Subject: added more tdd tests for 10.1 and 10.2 --- test/testFuncs2.c | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) (limited to 'test') diff --git a/test/testFuncs2.c b/test/testFuncs2.c index 634b737..f3c680b 100644 --- a/test/testFuncs2.c +++ b/test/testFuncs2.c @@ -284,5 +284,29 @@ no cast required */ ppi = (int * *)pcpi; /* Not compliant */ ppi = (int * *)ppci; /* Not compliant */ } + +void testfunc14(void) +{ + char a; + long int b; + long int b2; + double c; + float d; + long double e; + a = (int)b; + a = (int)(b + b2); + a = b + b2; + a = b++; + if ((int)(b + b2)) + { + /*something*/ + } + + a = c; + c = b; + d = c; + d = e; +} + /*********************************************************************************************************************/ /*last line intentionally left blank.*/ -- cgit v1.2.3