aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/tree-ssa/ssa-fre-92.c
blob: c67fcea5e930cf731f895662b1835b1184991ee6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/* { dg-do compile } */
/* { dg-options "-O2 -fdump-tree-fre1" } */

extern void foo(void);
int a, c, *f, **d = &f;
char b;
int main()
{
  if (a) {
    b = 0;
    int *g = &c;
    *g = 0;
    f = *d;
    *d = f;
    if ((2 ^ b) == 0)
      foo();
  }
  return 0;
}

/* { dg-final { scan-tree-dump-not "foo" "fre1" } } */