PR other/62008
[official-gcc.git] / gcc / testsuite / c-c++-common / cilk-plus / AN / pr62008.c
blob05734c560175a20b8e391b562d2d213acd450fba
1 /* PR other/62008 */
2 /* { dg-do compile } */
3 /* { dg-options "-fcilkplus" } */
5 void f(int *a, int w, int h)
7 int tmp[w][h];
8 tmp[:][:] = a[0:w][0:h]; /* { dg-error "base of array section must be pointer or array type" } */
9 /* { dg-error "start-index and length fields necessary" "" { target c } 8 } */