comparison gcc/testsuite/c-c++-common/cilk-plus/AN/pr62008.c @ 111:04ced10e8804

gcc 7
author kono
date Fri, 27 Oct 2017 22:46:09 +0900
parents
children
comparison
equal deleted inserted replaced
68:561a7518be6b 111:04ced10e8804
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 }