re PR fortran/83548 (Compilation Error using logical function in parameter)
[official-gcc.git] / gcc / testsuite / gfortran.dg / pure_formal_1.f90
blob4e62cf9dee67cad79e9cd657a982d7ece7425108
1 ! { dg-do compile }
3 ! PR fortran/47507
5 ! PURE procedures: Allow arguments w/o INTENT if they are VALUE
8 pure function f(x)
9 real, VALUE :: x
10 real :: f
11 f = sin(x)
12 end function f
14 pure subroutine sub(x)
15 real, VALUE :: x
16 end subroutine sub