aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr112939.c
blob: 7017beff30a2ece291ebc9530bea6675aa4b8db6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/* { dg-do compile } */
/* { dg-options "-O -ftrivial-auto-var-init=zero" } */

int i;

void f (void)
{
  for (;;)
  {
    if (0)
      for (;;)
      {
        int *a;
        int *b = a;

 l1:
        *b = (*b != 0) ? 0 : 2;
      }

    if (i != 0)
      goto l1;
  }
}