aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr85859.c
blob: 7a57a09682cdbf496c11f9d33cd902c21f19cbed (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/* { dg-do run } */
/* { dg-options "-ftree-tail-merge -Wno-div-by-zero -O2 -fno-dce -fno-isolate-erroneous-paths-dereference -fno-tree-dce -fno-tree-vrp" } */
/* { dg-require-effective-target ptr_eq_long } */

int b, c, d, e;

__attribute__ ((noinline, noclone))
int foo (short f)
{
  f %= 0;
  return f;
}

int
main (void)
{
  b = (unsigned char) __builtin_parity (d);
  e ? foo (0) : (__INTPTR_TYPE__) &c;
  return 0;
}