diff options
Diffstat (limited to 'libgomp/testsuite/libgomp.fortran/pr25219.f90')
-rw-r--r-- | libgomp/testsuite/libgomp.fortran/pr25219.f90 | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/libgomp/testsuite/libgomp.fortran/pr25219.f90 b/libgomp/testsuite/libgomp.fortran/pr25219.f90 new file mode 100644 index 000000000..7fe1a53aa --- /dev/null +++ b/libgomp/testsuite/libgomp.fortran/pr25219.f90 @@ -0,0 +1,15 @@ +! PR fortran/25219 + + implicit none + save + integer :: i, k + k = 3 +!$omp parallel +!$omp do lastprivate (k) + do i = 1, 100 + k = i + end do +!$omp end do +!$omp end parallel + if (k .ne. 100) call abort +end |