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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gfortran.dg/] [class_array_5.f03] - Blame information for rev 774

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

Line No. Rev Author Line
1 694 jeremybenn
! { dg-do compile }
2
! PR44568 - class array impelementation.
3
!
4
! Contributed by Hans-Werner Boschmann
5
!
6
module ice6
7
 
8
  type::a_type
9
   contains
10
     procedure::do_something
11
  end type a_type
12
 
13
  contains
14
 
15
  subroutine do_something(this)
16
    class(a_type),intent(in)::this
17
  end subroutine do_something
18
 
19
  subroutine do_something_else()
20
    class(a_type),dimension(:),allocatable::values
21
    call values(1)%do_something()
22
  end subroutine do_something_else
23
 
24
end module ice6
25
! { dg-final { cleanup-modules "ice6" } }

powered by: WebSVN 2.1.0

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