Mercurial > hg > CbC > CbC_gcc
comparison gcc/testsuite/gfortran.dg/isnan_2.f90 @ 111:04ced10e8804
gcc 7
author | kono |
---|---|
date | Fri, 27 Oct 2017 22:46:09 +0900 |
parents | |
children | 84e7813d76e9 |
comparison
equal
deleted
inserted
replaced
68:561a7518be6b | 111:04ced10e8804 |
---|---|
1 ! Test for the ISNAN intrinsic on constants | |
2 ! | |
3 ! { dg-do run } | |
4 ! { dg-options "-fno-range-check" } | |
5 ! { dg-add-options ieee } | |
6 ! { dg-skip-if "NaN not supported" { spu-*-* } } | |
7 ! | |
8 implicit none | |
9 character(len=1) :: s | |
10 write(s,'(L1)') isnan(0.) | |
11 if (s /= 'F') call abort | |
12 | |
13 write(s,'(L1)') isnan(exp(huge(0.))) | |
14 if (s /= 'F') call abort | |
15 | |
16 write(s,'(L1)') isnan(0./0.) | |
17 if (s /= 'T') call abort | |
18 end |