Mercurial > projects > dstress
view run/o/opCmp_05_D.d @ 627:caa75b9cf2f4
Negative numbers are treated as Positive in compares.
David L. Davis <SpottedTiger@yahoo.com>
2005-08-10
news:dddj2k$lrr$1@digitaldaemon.com
author | thomask |
---|---|
date | Sat, 13 Aug 2005 20:54:43 +0000 |
parents | |
children | 9dcac8d4e97f |
line wrap: on
line source
// $HeadURL$ // $Date$ // $Author$ // @author@ David L. Davis <SpottedTiger@yahoo.com> // @date@ 2005-08-10 // @uri@ news:dddj2k$lrr$1@digitaldaemon.com // @desc@ Negative numbers are treated as Positive in compares. module dstress.run.o.opCmp_05_D; int main(){ static if(128<0){ assert(0); } static if(128<=0){ assert(0); } static if(128>0){ assert(1); }else{ assert(0); } static if(128>=0){ assert(1); }else{ assert(0); } return 0; }