3 c g77 used to warn for this case
4 c 19990218-1.f: In program `test':
6 c double precision function fun(a,b)
8 c 19990218-1.f:23: (continued):
11 c Global name `fun' at (2) has different type at (1) [info -f g77 M GLOBALS]
13 double precision function fun
(a
,b
)
15 print*
,'in sub: a,b=',a
,b
17 print*
,'in sub: fun=',fun
21 double precision a
,b
,c
22 data a
,b
/1.0d
-46,1.0d0
/
23 c
=fun
(a
,b
) ! { dg
-error
"Return type mismatch of function" }
24 print*
,'in main: fun=',c