1 ! Test for the ISNAN intrinsic on constants
4 ! { dg-options "-fno-range-check" }
5 ! { dg-add-options ieee }
6 ! { dg-skip-if "NaN not supported" { spu-*-* } }
10 write(s
,'(L1)') isnan(0.)
11 if (s
/= 'F') call abort
13 write(s
,'(L1)') isnan(exp(huge(0.)))
14 if (s
/= 'F') call abort
16 write(s
,'(L1)') isnan(0./0.)
17 if (s
/= 'T') call abort