aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/c-c++-common/cilk-plus/AN/dimensionless-arrays.c
blob: 690e89a27d78587650b168ebc4bc22ffb3893820 (plain)
1
2
3
4
5
6
7
8
9
10
/* { dg-options "-fcilkplus" } */

extern int a[];
extern int *b;

void foo()
{
  a[:] = 5;	// { dg-error "start-index and length fields necessary for using array notation" }
  b[:] = 5;    // { dg-error "start-index and length fields necessary for using" }
}