URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gfortran.dg/] [intrinsic_actual_2.f90] - Rev 694
Compare with Previous | Blame | View Log
! { dg-do compile }! Tests the fix for PR29387, in which array valued arguments of! LEN and ASSOCIATED would cause an ICE.!! Contributed by Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>!integer :: ansTYPE T1INTEGER, POINTER :: I=>NULL()END TYPE T1type(T1), pointer :: tar(:)character(20) resj = 10PRINT *, LEN(SUB(8)), ansPRINT *, LEN(SUB(j)), ans! print *, len(SUB(j + 2)//"a"), ans ! This still fails (no charlen).print *, len(bar(2)), ansIF(.NOT.ASSOCIATED(F1(10))) CALL ABORT()deallocate (tar)CONTAINSFUNCTION SUB(I)CHARACTER(LEN=I) :: SUB(1)ans = LEN(SUB(1))SUB = ""END FUNCTIONFUNCTION BAR(I)CHARACTER(LEN=I*10) :: BAR(1)ans = LEN(BAR)BAR = ""END FUNCTIONFUNCTION F1(I) RESULT(R)TYPE(T1), DIMENSION(:), POINTER :: RINTEGER :: IALLOCATE(tar(I))R => tarEND FUNCTION F1END
