111
|
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.
|
|
4 !
|
|
5 ! Contributed by Tobias Ivarsson <thobes@gmail.com>
|
|
6 !
|
|
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
|
|
12
|
|
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
|
|
17
|
|
18 T(1:n,1)=(T(0:n-1,1)+T(1:n,1+1)+1d0)
|
|
19
|
131
|
20 if (any (T(1:n,1) .ne. 1d0 )) STOP 1
|
111
|
21 end program laplsolv
|