blob: 522e31c1c969e1723e5bb3c3708039b5dc2378e8 [file] [log] [blame]
! 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) STOP 1
end program
subroutine test (p)
implicit none
integer p
p = 42
end subroutine