aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gfortran.dg/intent_out_4.f90
blob: 93d7612e4e5cdd52dea9ad3fdd2c90d1ff751eab (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
! { dg-do compile }
!
! PR fortran/34689
!
! The following (cf. libgomp.fortran/appendix-a/a.33.3.f90)
! was rejected because the intent check missed a FL_FUNCTION
! for the result variable.
!
function test()
  implicit none
  integer :: test
  interface
    subroutine foo(a)
      integer, intent(inout) :: a
    end subroutine foo
  end interface
  call foo(test)
end function test