modula2: Simplify REAL/LONGREAL/SHORTREAL node creation.
[official-gcc.git] / gcc / testsuite / gfortran.dg / intent_out_4.f90
blob93d7612e4e5cdd52dea9ad3fdd2c90d1ff751eab
1 ! { dg-do compile }
3 ! PR fortran/34689
5 ! The following (cf. libgomp.fortran/appendix-a/a.33.3.f90)
6 ! was rejected because the intent check missed a FL_FUNCTION
7 ! for the result variable.
9 function test()
10 implicit none
11 integer :: test
12 interface
13 subroutine foo(a)
14 integer, intent(inout) :: a
15 end subroutine foo
16 end interface
17 call foo(test)
18 end function test