aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.c-torture/compile/20081108-1.c
blob: 3209a90c83bc8683b89705df656221e3b43657b7 (plain)
1
2
3
4
5
6
7
8
9
10
11
/* 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) ();
}