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

Subversion Repositories openrisc

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

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

! { dg-do compile }
!
! PR 48706: Type extension inside subroutine
!
! Contributed by Tobias Burnus <burnus@gcc.gnu.org>

module mod_diff_01
  implicit none
  type :: foo
  end type
contains
  subroutine create_ext
    type, extends(foo) :: foo_e
    end type
  end subroutine
end module

program diff_01
  use mod_diff_01
  implicit none
  call create_ext()
end program

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

Go to most recent revision | 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.