# HG changeset patch # User thomask # Date 1113027937 0 # Node ID 558f2ca8d898fea9523d40ed2a29ed398befaf6e # Parent ad4e3b6d61923d2f46f7304c191a3cee87fb612f type.max >> 1 tetsuya 2005-04-08 news:d36v0t$g3b$1@digitaldaemon.com diff -r ad4e3b6d6192 -r 558f2ca8d898 run/opShrAssign_01.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/opShrAssign_01.d Sat Apr 09 06:25:37 2005 +0000 @@ -0,0 +1,19 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ tetsuya +// @date@ 2005-04-08 +// @uri@ news:d36v0t$g3b$1@digitaldaemon.com + +module dstress.run.opShrAssign_01; + +int main(){ + uint mask = uint.max; + mask >>= 1; + assert(mask == (uint.max >> 1)); + return 0; +} + + + diff -r ad4e3b6d6192 -r 558f2ca8d898 run/opShrAssign_02.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/opShrAssign_02.d Sat Apr 09 06:25:37 2005 +0000 @@ -0,0 +1,19 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ tetsuya +// @date@ 2005-04-08 +// @uri@ news:d36v0t$g3b$1@digitaldaemon.com + +module dstress.run.opShrAssign_02; + +int main(){ + int mask = int.max; + mask >>= 1; + assert(mask == (int.max >> 1)); + return 0; +} + + + diff -r ad4e3b6d6192 -r 558f2ca8d898 run/opShr_01.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/opShr_01.d Sat Apr 09 06:25:37 2005 +0000 @@ -0,0 +1,18 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ tetsuya +// @date@ 2005-04-08 +// @uri@ news:d36v0t$g3b$1@digitaldaemon.com + +module dstress.run.opShr_01; + +int main(){ + uint mask = (uint.max >> 1); + assert(mask == (uint.max >> 1)); + return 0; +} + + + diff -r ad4e3b6d6192 -r 558f2ca8d898 run/opShr_02.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/opShr_02.d Sat Apr 09 06:25:37 2005 +0000 @@ -0,0 +1,18 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ tetsuya +// @date@ 2005-04-08 +// @uri@ news:d36v0t$g3b$1@digitaldaemon.com + +module dstress.run.opShr_02; + +int main(){ + int mask = (int.max >> 1); + assert(mask == (int.max >> 1)); + return 0; +} + + + diff -r ad4e3b6d6192 -r 558f2ca8d898 run/opShr_03.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/opShr_03.d Sat Apr 09 06:25:37 2005 +0000 @@ -0,0 +1,18 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ tetsuya +// @date@ 2005-04-08 +// @uri@ news:d36v0t$g3b$1@digitaldaemon.com + +module dstress.run.opShr_03; + +int main(){ + ubyte mask = (ubyte.max >> 1); + assert(mask == (ubyte.max >> 1)); + return 0; +} + + + diff -r ad4e3b6d6192 -r 558f2ca8d898 run/opShr_04.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/opShr_04.d Sat Apr 09 06:25:37 2005 +0000 @@ -0,0 +1,18 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ tetsuya +// @date@ 2005-04-08 +// @uri@ news:d36v0t$g3b$1@digitaldaemon.com + +module dstress.run.opShr_04; + +int main(){ + ulong mask = (ulong.max >> 1); + assert(mask == (ulong.max >> 1)); + return 0; +} + + + diff -r ad4e3b6d6192 -r 558f2ca8d898 run/opShr_05.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/opShr_05.d Sat Apr 09 06:25:37 2005 +0000 @@ -0,0 +1,18 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ tetsuya +// @date@ 2005-04-08 +// @uri@ news:d36v0t$g3b$1@digitaldaemon.com + +module dstress.run.opShr_05; + +int main(){ + long mask = (long.max >> 1); + assert(mask == (long.max >> 1)); + return 0; +} + + + diff -r ad4e3b6d6192 -r 558f2ca8d898 run/opShr_06.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/opShr_06.d Sat Apr 09 06:25:37 2005 +0000 @@ -0,0 +1,18 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ tetsuya +// @date@ 2005-04-08 +// @uri@ news:d36v0t$g3b$1@digitaldaemon.com + +module dstress.run.opShr_06; + +int main(){ + ushort mask = (ushort.max >> 1); + assert(mask == (ushort.max >> 1)); + return 0; +} + + +