aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/c-c++-common/cilk-plus/AN/pr62008.c
blob: 05734c560175a20b8e391b562d2d213acd450fba (plain)
1
2
3
4
5
6
7
8
9
10
/* PR other/62008 */
/* { dg-do compile } */
/* { dg-options "-fcilkplus" } */

void f(int *a, int w, int h)
{
  int tmp[w][h];
  tmp[:][:] = a[0:w][0:h]; /* { dg-error "base of array section must be pointer or array type" } */
  /* { dg-error "start-index and length fields necessary" "" { target c } 8 } */
}