Mercurial > hg > CbC > CbC_gcc
comparison gcc/testsuite/c-c++-common/gomp/pr53580.c @ 111:04ced10e8804
gcc 7
author | kono |
---|---|
date | Fri, 27 Oct 2017 22:46:09 +0900 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
68:561a7518be6b | 111:04ced10e8804 |
---|---|
1 /* PR middle-end/53580 */ | |
2 /* { dg-do compile } */ | |
3 /* { dg-options "-fopenmp" } */ | |
4 | |
5 int | |
6 main () | |
7 { | |
8 int x, y, v = 0; | |
9 | |
10 #pragma omp parallel | |
11 #pragma omp for | |
12 for (x = 0; x < 10; x++) | |
13 { | |
14 #pragma omp for reduction(+: v) /* { dg-error "work-sharing region may not be closely nested inside of work-sharing" } */ | |
15 for (y = 0; y < 10; y++) | |
16 v++; | |
17 } | |
18 return v - 100; | |
19 } |