AArch64: correct constraint on Upl early clobber alternatives
[official-gcc.git] / gcc / testsuite / gfortran.dg / dependency_21.f90
blobdaf5521acbf8e8e9cfa7fa9bdf3114847b693a78
1 ! { dg-do run }
2 ! Test the fix for PR31711 in which the dependency in the assignment
3 ! at line 18 was detected and then ignored.
5 ! Contributed by Tobias Ivarsson <thobes@gmail.com>
7 program laplsolv
8 IMPLICIT NONE
9 integer, parameter :: n = 2
10 double precision,dimension(0:n+1, 0:n+1) :: T
11 integer :: i
13 T=0.0
14 T(0:n+1 , 0) = 1.0
15 T(0:n+1 , n+1) = 1.0
16 T(n+1 , 0:n+1) = 2.0
18 T(1:n,1)=(T(0:n-1,1)+T(1:n,1+1)+1d0)
20 if (any (T(1:n,1) .ne. 1d0 )) STOP 1
21 end program laplsolv