PR target/83368
[official-gcc.git] / gcc / testsuite / gfortran.dg / proc_ptr_result_4.f90
blob5dd67bfe2bb5e7ae750dadc16f0c346bfe7104eb
1 ! { dg-do compile }
3 ! PR 40451: [F03] procedure pointer assignment rejected
5 ! Contributed by Tobias Burnus <burnus@gcc.gnu.org>
7 contains
9 function f()
10 intrinsic :: sin
11 abstract interface
12 pure real function sin_interf(x)
13 real, intent(in) :: x
14 end function sin_interf
15 end interface
16 ! We cannot use "sin" directly as it is ELEMENTAL
17 procedure(sin_interf), pointer :: f
18 f => sin
19 end function f
21 end