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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gfortran.dg/] [typebound_proc_14.f03] - Rev 694

Compare with Previous | Blame | View Log

! { dg-do compile }
!
! PR 40117: [OOP][F2008] Type-bound procedure: allow list after PROCEDURE
!
! Contributed by Janus Weil <janus@gcc.gnu.org>

module m

implicit none

type :: t
contains
  procedure :: foo, bar, baz
end type

contains

  subroutine foo (this)
    class(t) :: this
  end subroutine

  real function bar (this)
    class(t) :: this
  end function

  subroutine baz (this, par)
    class(t) :: this
    integer :: par
  end subroutine

end

! { dg-final { cleanup-modules "m" } }

Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

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