OpenCores
URL https://opencores.org/ocsvn/scarts/scarts/trunk

Subversion Repositories scarts

[/] [scarts/] [trunk/] [toolchain/] [scarts-gcc/] [gcc-4.1.1/] [gcc/] [testsuite/] [gfortran.fortran-torture/] [execute/] [character_passing.f90] - Rev 12

Compare with Previous | Blame | View Log

! PR middle-end/20030
! we were messing up the access in LSAME for
! the character arguments.
      program foo
      character*1 a1, a2, b
      logical LSAME, x
      a1='A'
      a2='A'
      b='B'
      x = LSAME(a1,a2)
      if ( .not. x ) then
        call abort  ();
      endif
      end

      logical function LSAME( CA, CB )
      character CA, CB
      integer   INTA, INTB
      INTA = ICHAR( CA )
      INTB = ICHAR( CB )
      LSAME = INTA.EQ.INTB
      end 

Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

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