aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/torture/pr112469.c
blob: 9978bcd4560727bdfe706f4483f57dfa45d16f3e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
/* { dg-do compile } */

int a, b, c;
static int *d = &a;
int e(int f) { return f == 0 ? 1 : f; }
void g() {
  a = 1;
  for (; a <= 8; a++) {
    b = e(*d);
    c = -b;
  }
}