1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
! Program to test compilation of subroutines following the main program program mainsub implicit none integer i external test i = 0 call test (i) if (i .ne. 42) call abort end program subroutine test (p) implicit none integer p p = 42 end subroutine