Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/c-c++-common/gomp/pr54017.c @ 111:04ced10e8804
gcc 7
author | kono |
---|---|
date | Fri, 27 Oct 2017 22:46:09 +0900 |
parents | |
children |
line wrap: on
line source
/* PR middle-end/54017 */ /* { dg-do compile } */ /* { dg-options "-fopenmp" } */ void f1 (void) { #pragma omp parallel sections { #pragma omp section { for (;;) ; } } } int f2 (void) { int i = 0; #pragma omp parallel #pragma omp sections reduction(+:i) { #pragma omp section { for (;;) ; } } return i; } void f3 (void) { #pragma omp parallel sections { #pragma omp section { for (;;) ; } #pragma omp section ; } } int f4 (void) { int i = 0; #pragma omp parallel #pragma omp sections reduction(+:i) { #pragma omp section { for (;;) ; } #pragma omp section ; } return i; }