# HG changeset patch # User thomask # Date 1115831483 0 # Node ID 7466721ce7d115460ce1970ffc87301fd0a7d888 # Parent a8b982e594e71dea65acc296440047452adcb534 opDiv run time versus compile time David Friedman 2005-05-03 news:d595il$lqr$2@digitaldaemon.com diff -r a8b982e594e7 -r 7466721ce7d1 run/o/opDiv_09_A.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/o/opDiv_09_A.d Wed May 11 17:11:23 2005 +0000 @@ -0,0 +1,28 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ David Friedman +// @date@ 2005-05-03 +// @uri@ news:d595il$lqr$2@digitaldaemon.com + +module dstress.run.o.opDiv_09_A; + +int main(){ + real a = -1.0L / 0.0L; + + real b = -1.0L; + real c = 0.0L; + real d; + + byte* X = cast(byte*) (cast(void*) &a); + + d = b/c; + byte* Y = cast(byte*) (cast(void*) &d); + + for(int i=0; i +// @date@ 2005-05-03 +// @uri@ news:d595il$lqr$2@digitaldaemon.com + +module dstress.run.o.opDiv_09_B; + +int main(){ + ireal a = -1.0Li / 0.0Li; + + ireal b = -1.0Li; + ireal c = 0.0Li; + ireal d; + + byte* X = cast(byte*) (cast(void*) &a); + + d = b/c; + byte* Y = cast(byte*) (cast(void*) &d); + + for(int i=0; i