]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/testsuite/c-c++-common/cilk-plus/AN/pr62008.c
[Patch AArch64] Fixup floating point division with -march=armv8-a+nosimd
[thirdparty/gcc.git] / gcc / testsuite / c-c++-common / cilk-plus / AN / pr62008.c
1 /* PR other/62008 */
2 /* { dg-do compile } */
3 /* { dg-options "-fcilkplus" } */
4
5 void f(int *a, int w, int h)
6 {
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 } .-1 } */
10 }