URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
Subversion Repositories openrisc_me
[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gfortran.dg/] [string_compare_1.f90] - Rev 302
Compare with Previous | Blame | View Log
! { dg-do run }! PR fortran/37099! Check for correct results when comparing array-section-substrings.PROGRAM mainIMPLICIT NONECHARACTER(*), PARAMETER :: exprs(1) = (/ 'aa' /)CHARACTER(*), PARAMETER :: al1 = 'a';CHARACTER(len=LEN (al1)) :: al2 = al1;LOGICAL :: tmp(1), tmp2(1)tmp = (exprs(1:1)(1:1) == al1)tmp2 = (exprs(1:1)(1:1) == al2)PRINT '(L1)', tmpPRINT '(L1)', tmp2IF (.NOT. tmp(1) .OR. .NOT. tmp2(1)) THENCALL abort ()END IFEND PROGRAM main
