Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/c-c++-common/cilk-plus/CK/pr59631.c @ 111:04ced10e8804
gcc 7
author | kono |
---|---|
date | Fri, 27 Oct 2017 22:46:09 +0900 |
parents | |
children |
line wrap: on
line source
/* { 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" } */ }