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

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

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