Commit 63110e4e by Tobias Schlüter Committed by Tobias Schlüter

select_1.f90: Rename function to fix type error.

* gfortran.fortran-torture/execute/select_1.f90: Rename function
to fix type error.
* gfortran.fortran-torture/execute/intrinsic_associated.f90:
Remove trailing spaces.

From-SVN: r83459
parent 8e2cd6dd
2004-06-21 Tobias Schlueter <tobias.schlueter@physik.uni-muenchen.de>
* gfortran.fortran-torture/execute/select_1.f90: Rename function
to fix type error.
* gfortran.fortran-torture/execute/intrinsic_associated.f90:
Remove trailing spaces.
2004-06-21 Richard Henderson <rth@redhat.com> 2004-06-21 Richard Henderson <rth@redhat.com>
* gcc.dg/tree-ssa/20030714-1.c: Rename variables to avoid * gcc.dg/tree-ssa/20030714-1.c: Rename variables to avoid
......
...@@ -5,7 +5,7 @@ program intrinsic_associated ...@@ -5,7 +5,7 @@ program intrinsic_associated
call pointer_to_derived_1 () call pointer_to_derived_1 ()
call associated_2 () call associated_2 ()
end end
subroutine pointer_to_section () subroutine pointer_to_section ()
integer, dimension(5, 5), target :: xy integer, dimension(5, 5), target :: xy
integer, dimension(:, :), pointer :: window integer, dimension(:, :), pointer :: window
...@@ -36,13 +36,13 @@ end ...@@ -36,13 +36,13 @@ end
subroutine sub1 (a, ap) subroutine sub1 (a, ap)
integer, pointer :: ap(:, :) integer, pointer :: ap(:, :)
integer, target :: a(10, 10) integer, target :: a(10, 10)
ap => a ap => a
end end
subroutine nullify_pp (a) subroutine nullify_pp (a)
integer, pointer :: a(:, :) integer, pointer :: a(:, :)
if (.not. associated (a)) call abort () if (.not. associated (a)) call abort ()
nullify (a) nullify (a)
end end
......
! from PR 15962, we used to require constant expressions instead of ! from PR 15962, we used to require constant expressions instead of
! initialization expressions in case-statements ! initialization expressions in case-statements
function x(k) function j(k)
integer :: k integer :: k
integer :: x integer :: j
integer, parameter :: i(2) = (/1,2/) integer, parameter :: i(2) = (/1,2/)
select case(k) select case(k)
case (1:size(i)) case (1:size(i))
x = i(k) j = i(k)
case default case default
x = 0 j = 0
end select end select
end function end function
if (x(2).NE.2 .OR. x(11).NE.0) call abort() if (j(2).NE.2 .OR. j(11).NE.0) call abort()
end end
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment