PR tree-optimization/86415 - strlen() not folded for substrings within constant arrays
[official-gcc.git] / gcc / testsuite / gfortran.dg / pr32238.f90
blob6af64ca606ad898468363ad6b25d83ba2a33dbbe
1 !PR fortran/32238
2 ! { dg-do compile }
4 module bug_test
6 contains
7 subroutine bug(c)
9 implicit none
11 integer, parameter :: fp = selected_real_kind(13)
12 complex(kind=fp) :: c(:,:)
13 where( abs( aimag( c ) ) < 1.e-10_fp ) &
14 & c = cmplx( real( c , fp ) , 0._fp , fp )
15 where( abs( real( c , fp ) ) < 1.e-10_fp ) &
16 & c = cmplx( 0._fp , aimag( c ) , fp )
18 return
19 end subroutine bug
21 end module bug_test