summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr46233.c
blob: 8916e4bdd3720e6cc97bcb8fc540fbc2d239cced (plain)
1
2
3
4
5
6
7
8
9
10
11
/* PR tree-optimization/46233 */
/* { dg-do compile } */
/* { dg-options "-O -fno-tree-dce" } */

int
foo ()
{
  int i = 0;
  while (1)
    i += foo ();
}