2015-09-24 Vladimir Makarov <vmakarov@redhat.com>
[official-gcc.git] / gcc / testsuite / gfortran.dg / proc_decl_9.f90
blob455c27ce9860a5538551ea09272d9f682b15c3df
1 ! { dg-do run }
2 ! PR33162 INTRINSIC functions as ACTUAL argument
3 ! Test case adapted from PR by Jerry DeLisle <jvdelisle@gcc.gnu.org>
4 elemental real function t(x)
5 real, intent(in) ::x
6 t = x
7 end function
9 program p
10 implicit none
11 intrinsic sin
12 procedure(sin) :: t
13 if (t(1.0) /= 1.0) call abort
14 end program