summaryrefslogtreecommitdiff
path: root/gcc/testsuite/c-c++-common/cilk-plus/AN/dimensionless-arrays.c
blob: 69aaa523727ee0306ce9c370c0a04b58192344ec (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 notations in dimensionless arrays" }
  b[:] = 5;    // { dg-error "start-index and length fields necessary for using array notations in pointers" }
}