| 1 |
/* { dg-do compile } */ |
| 2 |
/* { dg-options "-O2 -fdump-tree-optimized" } */ |
| 3 |
|
| 4 |
char buf[40]; |
| 5 |
void test (int x) |
| 6 |
{ |
| 7 |
__builtin_strcpy (buf, "test"); |
| 8 |
__builtin___strcat_chk (buf, "postfix" + x, sizeof (buf)); |
| 9 |
} |
| 10 |
|
| 11 |
/* { dg-final { scan-tree-dump "memcpy_chk.*, 36\\)" "optimized" } } */ |