summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.fortran-torture/execute/intrinsic_dummy.f90
blob: 2e8a34014925c33e8a8de6028af0c2550b7c1848 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
! Program to test passing intrinsic functions as actual arguments for
! dummy procedures.
subroutine test (proc)
   implicit none
   real proc
   real a, b, c

   a = 1.0
   b = sin (a)
   c = proc (a)
   
   if (abs (b - c) .gt. 0.001) call abort
   
end subroutine

program dummy
   implicit none
   external test
   intrinsic sin
   
   call test (sin)
end program