URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [gfortran.dg/] [dependency_3.f90] - Rev 816
Compare with Previous | Blame | View Log
! { dg-do run }! Tests the fix for PR24519, in which assignments with the same! range of an assumed shape array, on the lhs and rhs, would be! treated as causing a dependency.!! Contributed by Paul.Thomas <pault@gcc.gnu.org>!integer, parameter :: n = 100real :: x(n, n), vx = 1v = 0.1call foo (x, v)if (abs(sum (x) - 91.10847) > 1e-3) print *, sum (x)containssubroutine foo (b, d)real :: b(:, :)real :: temp(n), c, dinteger :: j, kdo k = 1, ntemp = b(:,k)do j = 1, nc = b(k,j)*db(:,j) = b(:,j)-temp*c ! This was the offending assignment.b(k,j) = cend doend doend subroutine fooend
