view gcc/testsuite/gfortran.dg/scalarize_parameter_array_2.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

! { dg-do compile }
!
! Test the fix for PR45305. The if statements should simplify away so
! that 'I_do_not_exist' is not referenced.
!
! Contributed by Tobias Burnus  <burnus@gcc.gnu.org>
!
if (any (abs(bessel_jn([1,2], 1.0) - bessel_jn([1,2], 1.0)) &
         > epsilon(0.0))) &
  call I_do_not_exist()

if (any (abs(bessel_jn(1, 2, 1.0) - bessel_jn([1,2], 1.0)) &
         > epsilon(0.0))) &
  call I_do_not_exist()
end