Warn pointer to signed integer cast for ilp32
[official-gcc.git] / gcc / testsuite / gcc.dg / pr49799.c
blob61ac261be51fdf2648aeedd087cc13d6ffeccec8
1 /* PR rtl-optimization/49799 */
2 /* { dg-do assemble } */
3 /* { dg-options "-O2 -w" } */
5 static __inline int bar(int a)
7 int tmp;
9 if (a <= 0) a ^= 0xFFFFFFFF;
11 return tmp - 1;
14 void foo(short *K)
16 short tmp;
17 short *pptr, P[14];
19 pptr = P;
20 tmp = bar(*K);
21 *pptr = (*K << tmp) >> 16;
23 if (*P < tmp)
24 *K++ = 0;