view gcc/testsuite/gfortran.dg/dec-comparison-real_1.f90 @ 145:1830386684a0

gcc-9.2.0
author anatofuz
date Thu, 13 Feb 2020 11:34:05 +0900
parents
children
line wrap: on
line source

! { dg-do run }
! { dg-options "-fdec" }
!
! Test case contributed by Mark Eggleston  <mark.eggleston@codethink.com>
!

program convert
  real(4) :: a
  real(4) :: b
  a = 4HABCD
  b = transfer("ABCD", b)
  ! Hollerith constants
  if (a.ne.4HABCD) stop 1
  if (a.eq.4HABCE) stop 2
  if (4HABCD.ne.b) stop 3
  if (4HABCE.eq.b) stop 4
  if (4HABCE.lt.a) stop 5
  if (a.gt.4HABCE) stop 6
  if (4HABCE.le.a) stop 7
  if (a.ge.4HABCE) stop 8
end program