aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/tree-ssa/pr99793.c
blob: 912744928e58d4c809f53c9c5ba3ca370bbc336a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/* { dg-do compile } */
/* { dg-options "-O -fstrict-aliasing -fdump-tree-optimized" } */

extern void foo(void);
static int a, *b = &a, c, *d = &c;
int main()
{
  int **e = &d;
  if (!((unsigned)((*e = d) == 0) - (*b = 1)))
    foo();
  return 0;
}

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