summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/intrinsic_std_5.f03
blob: f5c0f2d9d55645f4a1f1ce8f17961576d702734c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
! { dg-do compile }
! { dg-options "-std=f2003" }
!
! PR fortran/40728
!

! bogus error
SUBROUTINE s1
  IMPLICIT NONE
  real(4), volatile :: r4

  r4 = 0.0_4
  r4 = asinh(r4)         ! { dg-error "has no IMPLICIT type" }
END SUBROUTINE



! ICE on invalid (ATANH is defined by F2008 only)
SUBROUTINE s2
  IMPLICIT NONE
  real :: r
  r = 0.4
  print *, atanh(r)      ! { dg-error "has no IMPLICIT type" }
END SUBROUTINE