gcc/fortran/
[official-gcc.git] / gcc / testsuite / gfortran.dg / func_result_5.f90
blob5faff39502600d8fc4edc7ec0784ac5a912ec98c
1 ! { dg-do compile }
3 ! PR fortran/42650
5 ! Result type was not working
8 type(t) function func2() result(res)
9 type t
10 sequence
11 integer :: i = 5
12 end type t
13 res%i = 2
14 end function func2