diff options
author | Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> | 2011-08-05 12:22:10 +0000 |
---|---|---|
committer | Rainer Orth <ro@gcc.gnu.org> | 2011-08-05 12:22:10 +0000 |
commit | 98d0368392ca95df416e409289e2651f5fd6d7b9 (patch) | |
tree | 366606df2579efd3a31919a7b5e91efa7a92d6d7 /libgomp/testsuite | |
parent | 96c891b30a01cfead4d47530d1a2d78ebff13e1a (diff) | |
download | gcc-98d0368392ca95df416e409289e2651f5fd6d7b9.zip gcc-98d0368392ca95df416e409289e2651f5fd6d7b9.tar.gz gcc-98d0368392ca95df416e409289e2651f5fd6d7b9.tar.bz2 |
re PR target/49965 (libgomp.c++/reduction-4.C and libgomp.c++/task-8.C FAIL on Solaris 11/SPARC)
PR libgomp/49965
* testsuite/libgomp.c++/task-8.C: Replaced err by errval.
From-SVN: r177428
Diffstat (limited to 'libgomp/testsuite')
-rw-r--r-- | libgomp/testsuite/libgomp.c++/task-8.C | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/libgomp/testsuite/libgomp.c++/task-8.C b/libgomp/testsuite/libgomp.c++/task-8.C index 3e1b469..b523c4d 100644 --- a/libgomp/testsuite/libgomp.c++/task-8.C +++ b/libgomp/testsuite/libgomp.c++/task-8.C @@ -3,42 +3,42 @@ #include <omp.h> #include <cstdlib> -int err; +int errval; int main () { int e; -#pragma omp parallel shared(err) +#pragma omp parallel shared(errval) { if (omp_in_final ()) #pragma omp atomic write - err = 1; - #pragma omp task if (0) shared(err) + errval = 1; + #pragma omp task if (0) shared(errval) { if (omp_in_final ()) #pragma omp atomic write - err = 1; - #pragma omp task if (0) shared(err) + errval = 1; + #pragma omp task if (0) shared(errval) if (omp_in_final ()) #pragma omp atomic write - err = 1; + errval = 1; } - #pragma omp task final (1) shared(err) + #pragma omp task final (1) shared(errval) { if (!omp_in_final ()) #pragma omp atomic write - err = 1; + errval = 1; #pragma omp taskyield #pragma omp taskwait - #pragma omp task shared(err) + #pragma omp task shared(errval) if (!omp_in_final ()) #pragma omp atomic write - err = 1; + errval = 1; } } #pragma omp atomic read - e = err; + e = errval; if (e) abort (); } |