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

#include <stdint.h>

void f1();
void f2();

void
foo (int *a)
{
  if ((intptr_t) a == 0)
    {
      f1 ();
      if (a)
	f2 (); 
    }
}

/* { dg-final { scan-tree-dump "if \\(a == 0B\\)" "gimple" } } */