blob: 3521f87258a13bcea25280d5f7de332338d456eb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
/* { dg-do compile { target c++11 } } */
/* { dg-options "-fcilkplus" } */
int main (void)
{
int Array[100], Array2[100];
Array[{1,2}:2] = 5; /* { dg-error "braced list index is not allowed" } */
Array[1:{1,2}:2] = 5; /* { dg-error "expected primary-expression before" } */
Array[1:10:{1,2}] = 5; /* { dg-error "expected primary-expression before" } */
return 0;
}
|