summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr46375.c
blob: 0126bc93daa585df61a5f942af40f5eb5d4e407d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/* PR debug/46375 */
/* Reported by Zdenek Sojka <zsojka@seznam.cz> */
/* { dg-do compile } */
/* { dg-options "-fgcse -fno-tree-dominator-opts -fcompare-debug -O" } */

void bar (void);

void
foo (int **pp)
{
  int *p = 0;
  if (pp)
    p = *pp;
  if (p && *p)
    bar ();
}