diff options
Diffstat (limited to '')
-rw-r--r-- | test/testFuncs2.c | 4 |
1 files changed, 4 insertions, 0 deletions
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*/ |