OpenCores
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.fortran-torture/] [execute/] [character_passing.f90] - Blame information for rev 378

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 303 jeremybenn
! PR middle-end/20030
2
! we were messing up the access in LSAME for
3
! the character arguments.
4
      program foo
5
      character*1 a1, a2, b
6
      logical LSAME, x
7
      a1='A'
8
      a2='A'
9
      b='B'
10
      x = LSAME(a1,a2)
11
      if ( .not. x ) then
12
        call abort  ();
13
      endif
14
      end
15
 
16
      logical function LSAME( CA, CB )
17
      character CA, CB
18
      integer   INTA, INTB
19
      INTA = ICHAR( CA )
20
      INTB = ICHAR( CB )
21
      LSAME = INTA.EQ.INTB
22
      end

powered by: WebSVN 2.1.0

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