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

Subversion Repositories openrisc

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

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 694 jeremybenn
! { dg-do run }
2
!
3
! PR 41106: [F03] Procedure Pointers with CHARACTER results
4
!
5
! Contributed by Janus Weil 
6
 
7
character(len=5) :: str
8
procedure(character(len=5)), pointer :: pp
9
pp => abc
10
print *,pp()
11
str = pp()
12
if (str/='abcde') call abort()
13
contains
14
 function abc()
15
  character(len=5) :: abc
16
  abc = 'abcde'
17
 end function abc
18
end
19
 

powered by: WebSVN 2.1.0

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