1 /* { dg-do compile } */
2 /* { dg-options " " } */
3 
4 /* Tests the errors when Cilk keywords are used without -fcilkplus.  */
5 
foo()6 void foo()
7 {
8     _Cilk_spawn foo(); /* { dg-error "must be enabled to use" } */
9 }
10 
foo2()11 void foo2 ()
12 {
13   _Cilk_spawn foo (); /* { dg-error "must be enabled to use" } */
14   _Cilk_sync; /* { dg-error "must be enabled to use" } */
15 }
16