summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/g77/19990218-0.f
blob: 57bb638411020c25101ad5aa848cb45f052adc15 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
c { dg-do compile }
        program test
        double precision a,b,c
        data a,b/1.0d-46,1.0d0/
        c=fun(a,b) ! { dg-error "Return type mismatch of function" }
        print*,'in main: fun=',c
        end
        double precision function fun(a,b)
        double precision a,b
        print*,'in sub: a,b=',a,b
        fun=a*b
        print*,'in sub: fun=',fun
        return
        end