aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/c-c++-common/cilk-plus/CK/pr59631.c
blob: 389ee7c5dab0792a520871aac8e073fd5b42ec7d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* { dg-do compile } */
/* { dg-options " " } */  

/* Tests the errors when Cilk keywords are used without -fcilkplus.  */

void foo()
{
    _Cilk_spawn foo(); /* { dg-error "must be enabled to use" } */
}

void foo2 ()
{
  _Cilk_spawn foo (); /* { dg-error "must be enabled to use" } */
  _Cilk_sync; /* { dg-error "must be enabled to use" } */
}