Mercurial > projects > dstress
view run/real_22.d @ 1515:516ef5730874
[Issue 1108] Indexing an int[] not evaluatable at compile time
Reiner Pope <reiner.pope@gmail.com>
2007-04-07
http://d.puremagic.com/issues/show_bug.cgi?id=1108
author | thomask |
---|---|
date | Wed, 25 Apr 2007 17:47:00 +0000 |
parents | 80e1b85295b3 |
children |
line wrap: on
line source
// $HeadURL$ // $Date$ // $Author$ // @author@ Derek Parnell <derek@psych.ward> // @date@ 2005-04-02 // @uri@ news:5efpfwr0e1l5$.ks45nx0xz2zf$.dlg@40tude.net module dstress.run.real_22; int main(){ real f = 0.0000195L; if(typeid(typeof(0.0000195L)) != typeid(real)){ assert(0); } if(.5L + f * 1e6L != .5L + 0.0000195L * 1e6L){ assert(0); } return 0; }