summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.fortran-torture/execute/initialization_1.f90
blob: 2ccb45a2388bfd4ed7252593890c13b30774bb6a (plain)
1
2
3
4
5
6
7
8
9
10
! PR 15963 -- checks character comparison in initialization expressions
character(8), parameter :: a(5) = (/ "H", "E", "L", "L", "O" /)
call x(a)
contains
subroutine x(a)
character(8), intent(in) :: a(:)
integer :: b(count(a < 'F'))
if (size(b) /= 1) call abort()
end subroutine x
end