blob: 5cfc36727f576c66678ad39bee70f492758d1f2f [file] [log] [blame]
/* PR 31885 */
/* { dg-do compile } */
/* { dg-options "-O2 -fdump-tree-optimized" } */
struct s {
int *blah;
};
static struct s array[] = { { 0 } };
void
foo (struct s *p)
{
struct s *q = &array[1];
while (p < q)
p++;
}
/* { dg-final { scan-tree-dump-not "if" "optimized" } } */