Mercurial > projects > dstress
annotate run/real_22.d @ 1576:b3e16c86558e
[Issue 1398] New: GDC doesn't generate correct code
<mariusmuja@gmail.com>
2007-08-04
http://d.puremagic.com/issues/show_bug.cgi?id=1398
author | thomask |
---|---|
date | Thu, 21 Feb 2008 15:20:08 +0000 |
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 } |