c: Fix up pointer types to may_alias structures [PR114493]
[official-gcc.git] / gcc / testsuite / gfortran.dg / whole_file_8.f90
blobdb05c998ba7b484702dcacc21f40f6a85d6fd04f
1 ! { dg-do compile }
2 ! Test the fix for the third problem in PR40011, where false
3 ! type/rank mismatches were found in the main program calls.
5 ! Contributed by Dominique d'Humieres <dominiq@lps.ens.fr>
7 subroutine test_d(fn, val, res)
8 double precision fn
9 double precision val, res
11 print *, fn(val), res
12 end subroutine
14 subroutine test_c(fn, val, res)
15 complex fn
16 complex val, res
18 print *, fn(val), res
19 end subroutine
21 program specifics
23 intrinsic dcos
24 intrinsic dcosh
25 intrinsic dexp
27 intrinsic conjg
29 call test_d (dcos, 1d0, dcos(1d0))
30 call test_d (dcosh, 1d0, dcosh(1d0))
31 call test_d (dexp, 1d0, dexp(1d0))
33 call test_c (conjg, (1.0,1.0) , conjg((1.0,1.0)))
35 end program