aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorThomas Koenig <tkoenig@gcc.gnu.org>2020-06-23 21:59:47 +0200
committerGiuliano Belinassi <giuliano.belinassi@usp.br>2020-08-17 13:14:38 -0300
commitd2990b6e5c52b2bca385dd1748ddeab380f86712 (patch)
treef0c418cffbb02767319b0a189185bed9f9e698cc /gcc
parent2606d60b46d6dc82307e71d4c2917e3a4d95b6d7 (diff)
downloadgcc-d2990b6e5c52b2bca385dd1748ddeab380f86712.zip
gcc-d2990b6e5c52b2bca385dd1748ddeab380f86712.tar.gz
gcc-d2990b6e5c52b2bca385dd1748ddeab380f86712.tar.bz2
Make forall statement in testsuite conforming.
The recent patch for dependency checking introduced one failing test case for pointer assignments in a forall statement. This test case was invalid because of an interdependency in a forall statement. This patch fixes that by removing that dependency. gcc/testsuite/ChangeLog: * gfortran.fortran-torture/execute/forall_5.f90: Make forall statement conforming.
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/gfortran.fortran-torture/execute/forall_5.f908
1 files changed, 4 insertions, 4 deletions
diff --git a/gcc/testsuite/gfortran.fortran-torture/execute/forall_5.f90 b/gcc/testsuite/gfortran.fortran-torture/execute/forall_5.f90
index 9b33e21..c162d44 100644
--- a/gcc/testsuite/gfortran.fortran-torture/execute/forall_5.f90
+++ b/gcc/testsuite/gfortran.fortran-torture/execute/forall_5.f90
@@ -4,23 +4,23 @@ program forall_5
integer, pointer, dimension(:)::p
end type
- type (element) q(5)
+ type (element) :: q(5), r(5)
integer, target, dimension(25)::t
n = 5
do i = 1,5
- q(i)%p => t((i-1)*n + 1:i*n)
+ r(i)%p => t((i-1)*n + 1:i*n)
enddo
forall (i = 2:5)
- q(i)%p => q(i-1)%p
+ q(i)%p => r(i-1)%p
end forall
do i = 1, 25
t(i) = i
enddo
- if (any(q(1)%p .ne. (/1,2,3,4,5/))) STOP 1
+ if (any(r(1)%p .ne. (/1,2,3,4,5/))) STOP 1
if (any(q(2)%p .ne. (/1,2,3,4,5/))) STOP 2
if (any(q(3)%p .ne. (/6,7,8,9,10/))) STOP 3
if (any(q(4)%p .ne. (/11,12,13,14,15/))) STOP 4