| 1 |
/* { dg-do compile } */ |
| 2 |
/* { dg-options "-Os -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" } } */ |