PR middle-end/85602 - -Wsizeof-pointer-memaccess for strncat with size of source
[official-gcc.git] / gcc / testsuite / gcc.dg / pr83521.c
blobfc7ca04d1b4b28046ed22e2838b82e57e94fbdbc
1 /* PR tree-optimization/83521 */
2 /* { dg-do compile } */
3 /* { dg-options "-O1 -fno-tree-forwprop" } */
5 int
6 foo (unsigned int x, int y)
8 int *z = (int *)&x;
9 return (y == 0) ? y : *z;