Warn pointer to signed integer cast for ilp32
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / pr22321.c
blob64a94ab2d76b21578232dbb77526a81210c743aa
1 /* { dg-do compile } */
2 /* { dg-options "-O1 -fno-tree-vrp -fno-tree-copy-prop -fno-tree-ccp -fdump-tree-optimized" } */
5 volatile int x;
7 int main ()
9 volatile int *vip;
10 vip = &x;
11 volatile int *cvip;
12 cvip = vip;
14 if (vip != cvip) return -1;
15 return 0;
18 /* { dg-final { scan-tree-dump-times "return 0" 1 "optimized" } } */
19 /* { dg-final { cleanup-tree-dump "optimized" } } */