aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr102385.c
blob: 1339540c722c0bf917908a516c339d094732cf0f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/* { dg-options "-Wall -Wextra -O2 -fno-toplevel-reorder -fno-tree-ch -fno-tree-dce -fno-tree-dominator-opts -fno-tree-dse -fno-tree-loop-ivcanon -fpredictive-commoning" } */

short a, b;
int c[9];
void(d)() {}
void e() {
  a = 0;
  for (; a <= 4; a++) {
    short *f = &b;
    c[a] || (*f = 0);
    d(c[a + 2]);
  }
}
int main() {return 0;}