Mercurial > projects > dstress
annotate run/real_22.d @ 958:80e1b85295b3
DMD-0.154 review
author | thomask |
---|---|
date | Thu, 13 Apr 2006 07:34:32 +0000 |
parents | e77e4444c170 |
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 } |