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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gfortran.dg/] [whole_file_35.f90] - Blame information for rev 694

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 694 jeremybenn
! { dg-do compile }
2
!
3
! PR fortran/50408
4
!
5
! Contributed by Vittorio Zecca
6
!
7
       module m
8
         type int
9
           integer  :: val
10
         end type int
11
         interface ichar
12
           module procedure uch
13
        end interface
14
       contains
15
         function uch (c)
16
           character (len=1), intent (in) :: c
17
           type (int)                     :: uch
18
           intrinsic ichar
19
           uch%val = 127 - ichar (c)
20
         end function uch
21
       end module m
22
 
23
      program p
24
        use m
25
        print *,ichar('~') ! must print "1"
26
      end program p
27
 
28
! { dg-final { cleanup-modules "m" } }

powered by: WebSVN 2.1.0

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