aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/tree-ssa/phi-opt-6.c
blob: a5020c058670eac97326e3061ce1f424cf4e47d0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
/* { dg-do compile } */
/* { dg-options "-O -fdump-tree-phiopt2" } */

struct C { int i; };
int *g(struct C *p)
{
  if (p)
    return &p->i;
  return (int *)0;
}

/* { dg-final { scan-tree-dump-not "if" "phiopt2" } } */