From a45ab7b95b6e075de035c3225628e6dc09106cae Mon Sep 17 00:00:00 2001 From: bloodstalker Date: Thu, 24 Nov 2016 00:19:35 +0330 Subject: updated tdd tests for 12.3 --- test/testFuncs1.c | 18 ++++++++++++++++++ test/testFuncs1.h | 1 + 2 files changed, 19 insertions(+) (limited to 'test') diff --git a/test/testFuncs1.c b/test/testFuncs1.c index 1efb4de..2480afa 100644 --- a/test/testFuncs1.c +++ b/test/testFuncs1.c @@ -818,5 +818,23 @@ void test15(void) enum primeevil {diablo = 2, mephisto = 3, baal = 4}; } +short int test16(int a, int b) +{ + short int sum; + short unsigned int sumus; + sum = a + b; + sumus = a + b; + + return sum; +} + +void test17(void) +{ + int a = 100; + int b = 1000; + long int longa; + a = sizeof (b = 2000U); +} + /**********************************************************************************************************************/ /*the last line's been intentionally left blank.*/ diff --git a/test/testFuncs1.h b/test/testFuncs1.h index 4b590f8..ea5bb13 100644 --- a/test/testFuncs1.h +++ b/test/testFuncs1.h @@ -113,6 +113,7 @@ void test8(void); void test10(void); int test13(void); void test15(void); +void test17(void); /***********************************************************************************************************/ /*ive been intentionally left blank. dont touch me.*/ -- cgit v1.2.3