summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/scalarize_parameter_array_2.f90
blob: 2e0b475afd46a88047642574ad5ce0cac9043cb8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
! { 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