1 static unsigned very_big_shift(unsigned int a
)
4 r
|= a
<< (0ULL ^ ~0U);
5 r
|= a
<< ((( signed long long) ~0U) + 1);
6 r
|= a
<< (((unsigned long long) ~0U) + 1);
7 r
|= a
<< (~((unsigned long long) ~0U));
12 * check-name: shift-undef-long
13 * check-command: sparse -m64 $file
16 shift-undef-long.c:4:25: warning: shift count is negative (-1)
17 shift-undef-long.c:5:47: warning: shift too big (4294967296) for type unsigned int
18 shift-undef-long.c:7:20: warning: shift count is negative (-4294967296)