Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/c-c++-common/gomp/default-1.c @ 145:1830386684a0
gcc-9.2.0
author | anatofuz |
---|---|
date | Thu, 13 Feb 2020 11:34:05 +0900 |
parents | |
children |
line wrap: on
line source
void foo (void) { int x = 0, i; #pragma omp task default(none) /* { dg-error "enclosing 'task'" } */ { x++; /* { dg-error "'x' not specified in enclosing 'task'" } */ } #pragma omp taskloop default(none) /* { dg-error "enclosing 'taskloop'" } */ for (i = 0; i < 64; i++) { x++; /* { dg-error "'x' not specified in enclosing 'taskloop'" } */ } #pragma omp teams default(none) /* { dg-error "enclosing 'teams'" } */ { x++; /* { dg-error "'x' not specified in enclosing 'teams'" } */ } #pragma omp parallel default(none) /* { dg-error "enclosing 'parallel'" } */ { x++; /* { dg-error "'x' not specified in enclosing 'parallel'" } */ } }