summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/func_result_5.f90
blob: 5faff39502600d8fc4edc7ec0784ac5a912ec98c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
! { dg-do compile }
!
! PR fortran/42650
!
! Result type was not working
!

type(t) function func2() result(res)
  type t
    sequence
    integer :: i = 5
  end type t
  res%i = 2
end function func2