Mercurial > projects > dstress
annotate run/real_22.d @ 1619:bebc7472a832
Fix #7.
author | Christian Kamm <kamm incasoftware de> |
---|---|
date | Sat, 07 Nov 2009 18:55:30 +0100 |
parents | 80e1b85295b3 |
children |
rev | line source |
---|---|
376 | 1 // $HeadURL$ |
2 // $Date$ | |
3 // $Author$ | |
4 | |
564 | 5 // @author@ Derek Parnell <derek@psych.ward> |
376 | 6 // @date@ 2005-04-02 |
7 // @uri@ news:5efpfwr0e1l5$.ks45nx0xz2zf$.dlg@40tude.net | |
8 | |
9 module dstress.run.real_22; | |
10 | |
11 int main(){ | |
958 | 12 real f = 0.0000195L; |
13 | |
14 if(typeid(typeof(0.0000195L)) != typeid(real)){ | |
15 assert(0); | |
16 } | |
17 | |
18 if(.5L + f * 1e6L != .5L + 0.0000195L * 1e6L){ | |
19 assert(0); | |
20 } | |
21 | |
376 | 22 return 0; |
23 } |