Warn pointer to signed integer cast for ilp32
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / loop-29.c
blobc900dbf9bfbf0f73cb1b6fdbe9b64fdaa8e363c2
1 /* PR 31885 */
3 /* { dg-do compile } */
4 /* { dg-options "-O2 -fdump-tree-optimized" } */
6 struct s {
7 int *blah;
8 };
10 static struct s array[] = { { 0 } };
12 void
13 foo (struct s *p)
15 struct s *q = &array[1];
16 while (p < q)
17 p++;
20 /* { dg-final { scan-tree-dump-not "if" "optimized" } } */
21 /* { dg-final { cleanup-tree-dump "optimized" } } */