diff options
author | Richard Guenther <rguenther@suse.de> | 2010-01-03 22:44:56 +0000 |
---|---|---|
committer | Richard Biener <rguenth@gcc.gnu.org> | 2010-01-03 22:44:56 +0000 |
commit | e74003a1b8923f2dbd3d26b52d949abafe0843bf (patch) | |
tree | a4929d6a7036b3400355ac35ef2cee85d75e1a80 /libgomp/testsuite | |
parent | 2ad1dda01864af57bf0ab806ded518305082ebec (diff) | |
download | gcc-e74003a1b8923f2dbd3d26b52d949abafe0843bf.tar.gz |
re PR testsuite/42583 (FAIL: gfortran.dg/gomp/recursion1.f90: gfortran: libgomp.spec: No such file or directory)
2010-01-03 Richard Guenther <rguenther@suse.de>
PR testsuite/42583
* gfortran.dg/gomp/recursion1.f90: Remove.
libgomp/
* testsuite/libgomp.fortran/recursion1.f90: New testcase.
From-SVN: r155597
Diffstat (limited to 'libgomp/testsuite')
-rw-r--r-- | libgomp/testsuite/libgomp.fortran/recursion1.f90 | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/libgomp/testsuite/libgomp.fortran/recursion1.f90 b/libgomp/testsuite/libgomp.fortran/recursion1.f90 new file mode 100644 index 00000000000..0b7b2715fdd --- /dev/null +++ b/libgomp/testsuite/libgomp.fortran/recursion1.f90 @@ -0,0 +1,27 @@ +! { dg-do run } +! { dg-options "-fopenmp -fcheck=recursion" } +! +! PR 42517: Bogus runtime error with -fopenmp -fcheck=recursion +! +! Contributed by Janus Weil <janus@gcc.gnu.org> + +implicit none +integer :: i,s + +s=0 +!$omp parallel do private(i) shared(s) +do i=1,10 + call sub(i) +end do +!$omp end parallel do +if (s/=55) call abort() + +contains + + subroutine sub (n) + integer :: n + s = s + n + print '(A,i3)',"loop =",n + end subroutine + +end |