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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gfortran.dg/] [use_only_5.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/39427
4
!
5
! Test case was failing with the initial version of the
6
! constructor patch.
7
!
8
! Based on the Fortran XML library FoX
9
 
10
module m_common_attrs
11
  implicit none
12
  private
13
 
14
  type dict_item
15
    integer, allocatable :: i(:)
16
  end type dict_item
17
 
18
  type dictionary_t
19
    private
20
    type(dict_item), pointer :: d => null()
21
  end type dictionary_t
22
 
23
  public :: dictionary_t
24
  public :: get_prefix_by_index
25
 
26
contains
27
  pure function get_prefix_by_index(dict) result(prefix)
28
    type(dictionary_t), intent(in) :: dict
29
    character(len=size(dict%d%i)) :: prefix
30
  end function get_prefix_by_index
31
end module m_common_attrs
32
 
33
module m_common_namespaces
34
  use m_common_attrs, only: dictionary_t
35
  use m_common_attrs, only: get_prefix_by_index
36
end module m_common_namespaces
37
 
38
! { dg-final { cleanup-modules "m_common_attrs m_common_namespaces" } }

powered by: WebSVN 2.1.0

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