| 1 |
/* This does not fault with an x86 cross to risc-v, but does |
| 2 |
with s390 cross to risc-v, probably due to rounding of the |
| 3 |
argument to the alloca call within the risc-v backend. */ |
| 4 |
/* { dg-do compile } */ |
| 5 |
struct char100 |
| 6 |
{ |
| 7 |
char data[100]; |
| 8 |
}; |
| 9 |
|
| 10 |
struct s118248 |
| 11 |
{ |
| 12 |
void **vtbl; |
| 13 |
struct char100 data; |
| 14 |
}; |
| 15 |
|
| 16 |
void sink(struct char100 *buf); |
| 17 |
|
| 18 |
struct s118248 *pr118248(struct s118248 *pthis) |
| 19 |
{ |
| 20 |
struct char100 buf; |
| 21 |
sink(&buf); |
| 22 |
pthis->data = buf; |
| 23 |
return pthis; |
| 24 |
} |
| 25 |
|
| 26 |
|