aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/c-c++-common/cilk-plus/AN/pr61455.c
blob: 35a11b66c91177adc88bdd8938e553465e43267d (plain)
1
2
3
4
5
6
7
8
9
/* PR c++/61455 */
/* { dg-do compile } */
/* { dg-options "-fcilkplus" } */

void foo ()
{
  int a[2];
  int b = a[:]; /* { dg-error "cannot be scalar" } */
}