Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/c-c++-common/gomp/pr54017.c @ 158:494b0b89df80 default tip
...
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 25 May 2020 18:13:55 +0900 |
parents | 04ced10e8804 |
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; }