summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr87117-2.c
blob: aefa813918b868ff42a64d0839c957021b1cdc57 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* { dg-do compile } */
/* { dg-options "-O -fcode-hoisting" } */

void e();

void a(int c, char **d)
{
  char b;
  if (1 < c)
    b = (char)(__INTPTR_TYPE__)d[0];
  if (1 < c && b)
    e();
  while (1 < c)
    ;
}