annotate gcc/testsuite/gfortran.dg/bessel_2.f90 @ 145:1830386684a0

gcc-9.2.0
author anatofuz
date Thu, 13 Feb 2020 11:34:05 +0900
parents 84e7813d76e9
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 ! { dg-do compile }
kono
parents:
diff changeset
2 ! PR fortran/36117
kono
parents:
diff changeset
3 !
kono
parents:
diff changeset
4 ! This program will fail for MPFR < 2.3.0
kono
parents:
diff changeset
5 !
kono
parents:
diff changeset
6 ! Based on a test by James Van Buskirk.
kono
parents:
diff changeset
7 !
kono
parents:
diff changeset
8 program bug3
kono
parents:
diff changeset
9 implicit none
kono
parents:
diff changeset
10 real, parameter :: Qarg1 = 1.7
kono
parents:
diff changeset
11 integer, parameter :: k2 = kind(BESJ0(Qarg1))
kono
parents:
diff changeset
12 integer, parameter :: is_int = 1-1/(2+0*BESJ0(Qarg1))*2
kono
parents:
diff changeset
13 integer, parameter :: kind_if_real = &
kono
parents:
diff changeset
14 (1-is_int)*k2+is_int*kind(1.0)
kono
parents:
diff changeset
15 complex :: z = cmplx(0,1,kind_if_real) ! FAILS
131
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
16 if (kind_if_real /= kind(Qarg1)) STOP 1
111
kono
parents:
diff changeset
17 end program bug3