aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/compile/20081108-1.c
blob: a1f54e8c5fe67e2daf8f7e24a4b5e4dca331451d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
/* { dg-require-effective-target indirect_calls } */

/* Test function call with function designator involving VLA
   side-effects does not lead to an ICE.  */

void f (void);
void g (void);

void
h (int a, void *b)
{
  ((void *)(int (*)[++a])b ? f : g) ();
}