aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.dg/pr49602.c
blob: bb8eeb0c3320fe0bf6255b7bbb6980de1c9ef3d7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/* PR debug/49602 */
/* { dg-do compile } */
/* { dg-options "-g -O2" } */

static void
foo (int *x)
{
}

void
bar (int *x)
{
  int i;
  for (i = 0; i == 1; ++i)
    x = 0;
  foo (x);
}