| 1 |
/* { dg-do compile { target *-*-linux* } } */ |
| 2 |
/* { dg-options "-O2 -g0 -fcf-protection=branch" } */ |
| 3 |
/* Keep labels and directives ('.p2align', '.cfi_startproc'). */ |
| 4 |
/* { dg-final { check-function-bodies "**" "" "" { target "*-*-*" } {^\t?\.} } } */ |
| 5 |
|
| 6 |
/* |
| 7 |
**foo: |
| 8 |
**.LFB0: |
| 9 |
** .cfi_startproc |
| 10 |
** ( |
| 11 |
** endbr64 |
| 12 |
** .p2align 5 |
| 13 |
** | |
| 14 |
** endbr32 |
| 15 |
** ) |
| 16 |
**... |
| 17 |
*/ |
| 18 |
char * |
| 19 |
foo (char *dest, const char *src) |
| 20 |
{ |
| 21 |
while ((*dest++ = *src++) != '\0') |
| 22 |
/* nothing */; |
| 23 |
return --dest; |
| 24 |
} |