Warn pointer to signed integer cast for ilp32
[official-gcc.git] / gcc / testsuite / gcc.dg / pr52578.c
blob0e668300f20b861709cc2d7f545d037e4a563687
1 /* { dg-do compile } */
2 /* { dg-options "-fdump-tree-original" } */
4 long bar (long i)
6 return (long)((unsigned long)i + 2) - (long)i;
8 long foo (int i)
10 return (long)((unsigned long)i + 2) - (long)i;
13 /* { dg-final { scan-tree-dump-times "return 2;" 2 "original" } } */
14 /* { dg-final { cleanup-tree-dump "original" } } */