From eced3fafc64f64e813206929421924b590da5f76 Mon Sep 17 00:00:00 2001 From: bloodstalker Date: Fri, 25 Nov 2016 03:50:06 +0330 Subject: new tdd tests for 12.8 --- test/testFuncs1.c | 13 ++++++++++++- test/testFuncs1.h | 1 + 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/test/testFuncs1.c b/test/testFuncs1.c index 1bbc24c..0d55730 100644 --- a/test/testFuncs1.c +++ b/test/testFuncs1.c @@ -4,7 +4,7 @@ /*include*/ /**********************************************************************************************************************/ #include "testFuncs1.h" -//#include +#include /**************************************************MACROS & DEFS*******************************************************/ /**********************************************************************************************************************/ @@ -15,6 +15,8 @@ typedef unsigned int ut_int; typedef signed int t_int; typedef unsigned char BYTE; +const unsigned int shift = 10U; + /******************************************************Globals*********************************************************/ /**********************************************************************************************************************/ @@ -912,5 +914,14 @@ void test20(void) f = f << 4U; } +void test21(void) +{ + unsigned int a; + a = a >> 44U; + a = a >> shift; + a <<= 10U; + a << 45U; +} + /**********************************************************************************************************************/ /*the last line's been intentionally left blank.*/ diff --git a/test/testFuncs1.h b/test/testFuncs1.h index 78dfa42..0961101 100644 --- a/test/testFuncs1.h +++ b/test/testFuncs1.h @@ -116,6 +116,7 @@ void test15(void); void test17(void); void test19(void); void test20(void); +void test21(void); /***********************************************************************************************************/ /*ive been intentionally left blank. dont touch me.*/ -- cgit v1.2.3