aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr83521.c
blob: fc7ca04d1b4b28046ed22e2838b82e57e94fbdbc (plain)
1
2
3
4
5
6
7
8
9
10
/* PR tree-optimization/83521 */
/* { dg-do compile } */
/* { dg-options "-O1 -fno-tree-forwprop" } */

int
foo (unsigned int x, int y)
{
  int *z = (int *)&x;
  return (y == 0) ? y : *z;
}