PR middle-end/85602 - -Wsizeof-pointer-memaccess for strncat with size of source
[official-gcc.git] / gcc / testsuite / gcc.dg / pr58742-3.c
blob3c4d14596cea0c02b72a1cc30bc600cd151a5a45
1 /* { dg-do compile } */
2 /* { dg-options "-O -fdump-tree-cddce1" } */
4 int *
5 fx (int *a, int sz)
7 int *b = a + sz;
8 b = b - sz;
9 /* forwprop together with FRE should optimize this to return a; */
10 return b;
13 /* { dg-final { scan-tree-dump "return a" "cddce1" } } */