PR middle-end/85602 - -Wsizeof-pointer-memaccess for strncat with size of source
[official-gcc.git] / gcc / testsuite / gcc.dg / shrink-wrap-loop.c
blob52dfc2790ed27fe2446a998e25070daf9b24a652
1 /* { dg-do compile { target { { { i?86-*-* x86_64-*-* } && lp64 } || { arm_thumb2 } } } } */
2 /* { dg-options "-O2 -fdump-rtl-pro_and_epilogue" } */
4 int foo (int *p1, int *p2);
6 int
7 test (int *p1, int *p2)
9 int *p;
11 for (p = p2; p != 0; p++)
13 if (!foo (p, p1))
14 return 0;
17 return 1;
19 /* { dg-final { scan-rtl-dump "Performing shrink-wrapping" "pro_and_epilogue" } } */