aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gfortran.dg/altreturn_8.f90
blob: ccd58a2b083b41af2158f828b224cb1e4a0e33bb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
! { dg-do compile }
! { dg-options "-std=gnu" }
!
! PR 56284: [OOP] ICE with alternate return in type-bound procedure
!
! Contributed by Arjen Markus <arjen.markus@deltares.nl>

module try_this
  implicit none

  type :: table_t
  contains
    procedure, nopass :: getRecord
  end type

contains

  subroutine getRecord ( * )
  end subroutine

end module

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