| 1 |
/* { dg-options "-O2 -mcpu=neoverse-v1 -fstack-protector-all" } */ |
| 2 |
/* { dg-final { check-function-bodies "**" "" } } */ |
| 3 |
|
| 4 |
/* |
| 5 |
** main: |
| 6 |
** ... |
| 7 |
** stp x29, x30, \[sp, #?-[0-9]+\]! |
| 8 |
** ... |
| 9 |
** sub sp, sp, #[0-9]+ |
| 10 |
** ... |
| 11 |
** str x[0-9]+, \[x29, #?-8\] |
| 12 |
** ... |
| 13 |
*/ |
| 14 |
int f(const char *); |
| 15 |
void g(void *); |
| 16 |
int main(int argc, char* argv[]) |
| 17 |
{ |
| 18 |
int a; |
| 19 |
int b; |
| 20 |
char c[2+f(argv[1])]; |
| 21 |
int d[0x100]; |
| 22 |
char y; |
| 23 |
|
| 24 |
y=42; a=4; b=10; |
| 25 |
c[0] = 'h'; c[1] = '\0'; |
| 26 |
|
| 27 |
c[f(argv[2])] = '\0'; |
| 28 |
|
| 29 |
__builtin_printf("%d %d\n%s\n", a, b, c); |
| 30 |
g(d); |
| 31 |
|
| 32 |
return 0; |
| 33 |
} |