aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/tree-ssa/pr95804.c
blob: 83c0ab45cf50d0edc3e11fea4e6da104745af1ae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/* PR tree-optimization/95804 */
/* { dg-do compile } */
/* { dg-options "-O3" } */

int a, b, c, d, e, f;
void g() {
  short *h = (short*)&d;
  char *i = (char*)&b;
  for (; e; e++) {
    for (; f; f++) {
      b = 3;
      if ((c = 8) >= *i)
        a = 5 ? *h : 0;
      h = (short*)g;
    }
    i = (char*)&c;
  }
}