OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc2/] [gcc/] [testsuite/] [gfortran.dg/] [string_compare_1.f90] - Diff between revs 302 and 384

Go to most recent revision | Only display areas with differences | Details | Blame | View Log

Rev 302 Rev 384
! { dg-do run }
! { dg-do run }
! PR fortran/37099
! PR fortran/37099
! Check for correct results when comparing array-section-substrings.
! Check for correct results when comparing array-section-substrings.
PROGRAM main
PROGRAM main
  IMPLICIT NONE
  IMPLICIT NONE
  CHARACTER(*), PARAMETER :: exprs(1) = (/ 'aa' /)
  CHARACTER(*), PARAMETER :: exprs(1) = (/ 'aa' /)
  CHARACTER(*), PARAMETER :: al1 = 'a';
  CHARACTER(*), PARAMETER :: al1 = 'a';
  CHARACTER(len=LEN (al1)) :: al2 = al1;
  CHARACTER(len=LEN (al1)) :: al2 = al1;
  LOGICAL :: tmp(1), tmp2(1)
  LOGICAL :: tmp(1), tmp2(1)
  tmp = (exprs(1:1)(1:1) == al1)
  tmp = (exprs(1:1)(1:1) == al1)
  tmp2 = (exprs(1:1)(1:1) == al2)
  tmp2 = (exprs(1:1)(1:1) == al2)
  PRINT '(L1)', tmp
  PRINT '(L1)', tmp
  PRINT '(L1)', tmp2
  PRINT '(L1)', tmp2
  IF (.NOT. tmp(1) .OR. .NOT. tmp2(1)) THEN
  IF (.NOT. tmp(1) .OR. .NOT. tmp2(1)) THEN
    CALL abort ()
    CALL abort ()
  END IF
  END IF
END PROGRAM main
END PROGRAM main
 
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.