1 /** not.c test ! operator
3 ANSI: return type is int
12 signed char {attr
} sc
;
13 unsigned char {attr
} uc
;
14 unsigned int {attr
} ui
;
15 unsigned long {attr
} ul
;
21 /* remember: unsigned * signed -> unsigned */
22 /* signed * signed -> signed */
23 ASSERT(!( signed char) 0 * -1 < 0);
24 ASSERT(!(unsigned char) 0 * -1 < 0);
28 ASSERT(! 0u * -1 < 0);
30 ASSERT(! 0l * -1 < 0);
31 ASSERT(! 0ul * -1 < 0);
34 ASSERT(!(char) 0 << 8 == 0x100);
35 ASSERT(!sc
<< 8 == 0x100);
36 #if !defined(PORT_HOST)
37 ASSERT(!0 << 16 == 0);
38 ASSERT(!0l << 16 == 0);
39 ASSERT(!ui
<< 16 == 0);
40 ASSERT(!ul
<< 16 == 0);