PR target/83368
[official-gcc.git] / gcc / testsuite / gfortran.dg / class_result_3.f90
blob39d6c1ef777d3ce83dfb440916211fee4def1c7c
1 ! { dg-do compile }
3 ! PR 78300: [OOP] Failure to compile a F03 code with an optional dummy procedure argument
5 ! Contributed by DIL <liakhdi@ornl.gov>
7 implicit none
9 type gfc_cont_elem_t
10 end type
12 contains
14 function gfc_copy_i() result(clone)
15 class(gfc_cont_elem_t), pointer:: clone
16 end
18 subroutine ContElemConstruct(copy_constr_func)
19 procedure(gfc_copy_i) :: copy_constr_func
20 end
22 end