OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gfortran.dg/] [dependency_21.f90] - Blame information for rev 302

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 302 jeremybenn
! { 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 
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

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.