aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/tree-ssa/ldist-37.c
blob: 9aae432839434503f4d3196b3b7d6ac0fa364e40 (plain)
1
2
3
4
5
6
7
8
9
10
/* { dg-do compile } */
/* { dg-options "-Os -fdump-tree-ldist-optimized" } */

void foo(char* restrict dst, const char* buf)
{
  for (int i=0; i<8; ++i)
    *dst++ = *buf++;
}

/* { dg-final { scan-tree-dump "split to 0 loops and 1 library calls" "ldist" } } */