Warn pointer to signed integer cast for ilp32
[official-gcc.git] / gcc / testsuite / gcc.dg / pr45107.c
blob05dbec32177a14968cb25adae81b2d6b2d8fb085
1 /* PR rtl-optimization/45107 */
2 /* { dg-do compile } */
3 /* { dg-options "-Os -fgcse-las" } */
5 extern void bar(int *);
7 int foo (int *p)
9 int i = *p;
10 if (i != 1)
11 bar(&i);
12 *p = i;