| 1 |
/* PR debug/39412 */ |
| 2 |
/* { dg-do compile } */ |
| 3 |
|
| 4 |
struct S { int i; }; |
| 5 |
|
| 6 |
inline void |
| 7 |
bar (const void *x, unsigned long y) |
| 8 |
{ |
| 9 |
const union { struct S a[y]; } *u = x; |
| 10 |
} |
| 11 |
|
| 12 |
void |
| 13 |
foo (const void *x, unsigned long y) |
| 14 |
{ |
| 15 |
bar (x, y); |
| 16 |
} |