Mercurial > hg > CbC > CbC_gcc
comparison gcc/testsuite/gfortran.dg/dependency_21.f90 @ 111:04ced10e8804
gcc 7
author | kono |
---|---|
date | Fri, 27 Oct 2017 22:46:09 +0900 |
parents | |
children | 84e7813d76e9 |
comparison
equal
deleted
inserted
replaced
68:561a7518be6b | 111:04ced10e8804 |
---|---|
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 | |
20 if (any (T(1:n,1) .ne. 1d0 )) call abort () | |
21 end program laplsolv |