aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/c-c++-common/cilk-plus/AN/fn_ptr-2.c
blob: 4e1990fcc3474715e1cae6e223549a3ed7fd106d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/* { dg-do compile } */
/* { dg-options "-fcilkplus" } */

typedef void (*f) (void *);
f b[1024];
void *c[1024][1024];

int
main (void)
{
  (b[:]) (c[:][:]); /* { dg-error "rank mismatch" "" { xfail *-*-* } } */
  return 0;
}