From 30c04ade5e94821b1054bd5be624e44144713270 Mon Sep 17 00:00:00 2001 From: bloodstalker Date: Thu, 24 Nov 2016 23:56:09 +0330 Subject: added tdd tests for 12.6 and 12.7 --- test/testFuncs1.c | 19 +++++++++++++++++++ test/testFuncs1.h | 1 + 2 files changed, 20 insertions(+) diff --git a/test/testFuncs1.c b/test/testFuncs1.c index 8c05582..1bbc24c 100644 --- a/test/testFuncs1.c +++ b/test/testFuncs1.c @@ -12,6 +12,7 @@ #define LOCO 2U typedef unsigned int ut_int; +typedef signed int t_int; typedef unsigned char BYTE; /******************************************************Globals*********************************************************/ @@ -893,5 +894,23 @@ void test19(void) } +void test20(void) +{ + signed int a; + unsigned int b; + signed char c; + unsigned char d; + t_int e; + ut_int f; + + b = b >> 2; + a = a << 3U; + b = b ^ 2U; + c = c & 6U; + d = d | 2U; + e = e >> 2U; + f = f << 4U; +} + /**********************************************************************************************************************/ /*the last line's been intentionally left blank.*/ diff --git a/test/testFuncs1.h b/test/testFuncs1.h index 8457f87..78dfa42 100644 --- a/test/testFuncs1.h +++ b/test/testFuncs1.h @@ -115,6 +115,7 @@ int test13(void); void test15(void); void test17(void); void test19(void); +void test20(void); /***********************************************************************************************************/ /*ive been intentionally left blank. dont touch me.*/ -- cgit v1.2.3