aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gfortran.fortran-torture/execute/mystery_proc.f90
blob: 06fa21614ed2df2e32954e011d4ec876ef3fa711 (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 dummy procedures
subroutine bar()
end subroutine

subroutine foo2(p)
  external p

  call p()
end subroutine

subroutine foo(p)
  external p
  ! We never actually discover if this is a function or a subroutine
  call foo2(p)
end subroutine

program intrinsic_minmax
   implicit none
   external bar

   call foo(bar)
end program