summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/debug/pr46782.c
blob: 1603b0922c2cef6876630cf1d122c5d106244068 (plain)
1
2
3
4
5
6
7
8
9
10
11
/* PR debug/46782 */
/* { dg-do compile } */
/* { dg-options "-w -O0 -fvar-tracking -fcompare-debug" } */

void foo (int i)
{
  if (i)
    i++;
  while (i)
    ;
}