blob: 13699aafd622103d2c29851f21528192a87c2a7d [file] [log] [blame]
/* PR 31885 */
/* { dg-do compile } */
/* { dg-options "-O1 -fdump-tree-empty" } */
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-times "Removing empty loop" 1 "empty" } } */
/* { dg-final { cleanup-tree-dump "empty" } } */