mirror of
https://github.com/autc04/Retro68.git
synced 2024-09-28 18:56:06 +00:00
21 lines
281 B
Fortran
21 lines
281 B
Fortran
! { dg-do run }
|
|
module m
|
|
implicit character(8) (a-z)
|
|
contains
|
|
function f(x)
|
|
integer :: x
|
|
integer :: f
|
|
real :: e
|
|
f = x
|
|
return
|
|
entry e(x)
|
|
e = x
|
|
end
|
|
end module
|
|
|
|
program p
|
|
use m
|
|
if (f(1) /= 1) STOP 1
|
|
if (e(1) /= 1.0) STOP 2
|
|
end
|