2 ! { dg-options "-Wall" }
4 ! Check fix for PR94246 in which the errors in line 63 caused a segfault
5 ! because the cleanup was not done correctly without the -fno-range-check option.
7 ! This is a copy of bessel_5.f90 with the error messages added.
9 ! -Wall has been specified to disabled -pedantic, which warns about the
10 ! negative order (GNU extension) to the order of the Bessel functions of
11 ! first and second kind.
18 ! Difference to mpfr_jn <= 1 epsilon
20 if (any (abs (BESSEL_JN(2, 5, 2.457) - [(BESSEL_JN(i
, 2.457), i
= 2, 5)]) &
27 ! Difference to mpfr_yn <= 4 epsilon
29 if (any (abs (BESSEL_YN(2, 5, 2.457) - [(BESSEL_YN(i
, 2.457), i
= 2, 5)]) &
30 > epsilon(0.0)*4)) then
35 ! Difference to mpfr_jn <= 1 epsilon
37 if (any (abs (BESSEL_JN(0, 10, 4.457) &
38 - [ (BESSEL_JN(i
, 4.457), i
= 0, 10) ]) &
44 ! Difference to mpfr_yn <= 192 epsilon
46 if (any (abs (BESSEL_YN(0, 10, 4.457) &
47 - [ (BESSEL_YN(i
, 4.457), i
= 0, 10) ]) &
48 > epsilon(0.0)*192)) then
53 ! Difference to mpfr_jn: None. (Special case: X = 0.0)
55 if (any (BESSEL_JN(0, 10, 0.0) /= [ (BESSEL_JN(i
, 0.0), i
= 0, 10) ])) &
61 ! Difference to mpfr_yn: None. (Special case: X = 0.0)
63 if (any (BESSEL_YN(0, 10, 0.0) /= [ (BESSEL_YN(i
, 0.0), i
= 0, 10) ])) & ! { dg-error "overflows|-INF" }
69 ! Difference to mpfr_jn <= 1 epsilon
71 if (any (abs (BESSEL_JN(0, 10, 1.0) &
72 - [ (BESSEL_JN(i
, 1.0), i
= 0, 10) ]) &
73 > epsilon(0.0)*1)) then
77 ! Difference to mpfr_yn <= 32 epsilon
79 if (any (abs (BESSEL_YN(0, 10, 1.0) &
80 - [ (BESSEL_YN(i
, 1.0), i
= 0, 10) ]) &
81 > epsilon(0.0)*32)) then