1 ! Test for the ISNAN intrinsic on constants
4 ! { dg-options "-fno-range-check" }
5 ! { dg-options "-fno-range-check -pedantic-errors -mieee" { target sh*-*-* } }
9 write(s
,'(L1)') isnan(0.)
10 if (s
/= 'F') call abort
12 write(s
,'(L1)') isnan(exp(huge(0.)))
13 if (s
/= 'F') call abort
15 write(s
,'(L1)') isnan(0./0.)
16 if (s
/= 'T') call abort