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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gfortran.dg/] [typebound_call_14.f03] - 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 44211: [OOP] ICE with TBP of pointer component of derived type array
4
!
5
! Original test case by Hans-Werner Boschmann 
6
! Modified by Janus Weil 
7
 
8
module ice_module
9
  type::ice_type
10
     class(ice_type),pointer::next
11
   contains
12
     procedure::ice_sub
13
     procedure::ice_fun
14
  end type ice_type
15
contains
16
  subroutine ice_sub(this)
17
    class(ice_type)::this
18
  end subroutine
19
  integer function ice_fun(this)
20
    class(ice_type)::this
21
  end function
22
  subroutine ice()
23
    type(ice_type),dimension(2)::ice_array
24
    call ice_array(1)%next%ice_sub()
25
    print *,ice_array(2)%next%ice_fun()
26
  end subroutine
27
end module ice_module
28
 
29
! { dg-final { cleanup-modules "ice_module" } }

powered by: WebSVN 2.1.0

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