aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/c-c++-common/cilk-plus/CK/sync_wo_spawn.c
blob: 51be796e562416116e2d43fda4c547af1e77df8a (plain)
1
2
3
4
5
6
7
8
9
/* { dg-do compile } */
/* { dg-options "-fcilkplus" } */

int main (void)
{
  _Cilk_sync; /* { dg-error "expected '_Cilk_spawn' before '_Cilk_sync'" } */
  return 0;
}