]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/testsuite/gcc.dg/tree-ssa/ldist-38.c
Fix profile update in tree_transform_and_unroll_loop
[thirdparty/gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / ldist-38.c
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fdump-tree-ldist-optimized" } */
3
4 void foo(char* restrict dst, const char* buf)
5 {
6 for (int i=0; i<8; ++i)
7 *dst++ = *buf++;
8 }
9
10 /* { dg-final { scan-tree-dump "split to 0 loops and 1 library calls" "ldist" } } */