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

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