From d41a12f82009db4333217ce36e66cee505a70708 Mon Sep 17 00:00:00 2001 From: bloodstalker Date: Fri, 23 Dec 2016 00:14:25 +0330 Subject: minor changes --- test/testFuncs2.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'test') diff --git a/test/testFuncs2.c b/test/testFuncs2.c index f3c680b..18b2260 100644 --- a/test/testFuncs2.c +++ b/test/testFuncs2.c @@ -260,10 +260,14 @@ void testfunc12(void) short int port = 0x5aU; short int resultshort; int resultlong; + int mode; resultshort = (~port) >> 4; resultshort = ((short int)(~port)) >> 4; + /*should not be tagged by 10.1\2*/ resultlong = ((int)(~(int)port)) >> 4; + resultlong = ((port << 4) & mode) >> 6; + resultlong = ((int)((int)port << 4) & mode) >> 6; } /*the test are from the misrac doc for 11.5*/ -- cgit v1.2.3