view gcc/testsuite/gfortran.dg/pr35662.f90 @ 158:494b0b89df80 default tip

...
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Mon, 25 May 2020 18:13:55 +0900
parents 84e7813d76e9
children
line wrap: on
line source

! PR target/35662
! { dg-do run }
! { dg-options "-O1" }

subroutine f(x, y, z)
  real, intent (in) :: x
  real, intent (out) :: y, z
  y = sin (x)
  z = cos (x)
end subroutine f

program pr35662
  real :: x, y, z
  x = 3.1415926535897932384626433832795029
  call f (x, y, z)
  if (abs (y) > 1.0e-5 .or. abs (z + 1.0) > 1.0e-5) STOP 1
  x = x / 2.0
  call f (x, y, z)
  if (abs (y - 1.0) > 1.0e-5 .or. abs (z) > 1.0e-5) STOP 2
end program pr35662