| 1 |
/* { dg-require-effective-target indirect_calls } */ |
| 2 |
|
| 3 |
/* Test function call with function designator involving VLA |
| 4 |
side-effects does not lead to an ICE. */ |
| 5 |
|
| 6 |
void f (void); |
| 7 |
void g (void); |
| 8 |
|
| 9 |
void |
| 10 |
h (int a, void *b) |
| 11 |
{ |
| 12 |
((void *)(int (*)[++a])b ? f : g) (); |
| 13 |
} |