| 1 |
! { dg-do compile } |
| 2 |
! { dg-options "-std=f2003 -Wimplicit-procedure" } |
| 3 |
! |
| 4 |
! PR fortran/36158 - Transformational BESSEL_JN/YN |
| 5 |
! PR fortran/33197 - F2008 math functions |
| 6 |
! |
| 7 |
IMPLICIT NONE |
| 8 |
print *, SIN (1.0) |
| 9 |
print *, BESSEL_J0(1.0) ! { dg-error "has no IMPLICIT type" } |
| 10 |
print *, BESSEL_J1(1.0) ! { dg-error "has no IMPLICIT type" } |
| 11 |
print *, BESSEL_JN(1,1.0) ! { dg-error "has no IMPLICIT type|Type mismatch" } |
| 12 |
print *, BESSEL_JN(1,2,1.0) ! { dg-error "has no IMPLICIT type|Type mismatch|More actual than formal" } |
| 13 |
|
| 14 |
print *, BESSEL_Y0(1.0) ! { dg-error "has no IMPLICIT type" } |
| 15 |
print *, BESSEL_Y1(1.0) ! { dg-error "has no IMPLICIT type" } |
| 16 |
print *, BESSEL_YN(1,1.0) ! { dg-error "has no IMPLICIT type|Type mismatch" } |
| 17 |
print *, BESSEL_YN(1,2,1.0) ! { dg-error "has no IMPLICIT type|Type mismatch|More actual than formal" } |
| 18 |
end |