Mercurial > projects > dstress
changeset 215:b79bc0c00bfc
opShl and uint
Hiroshi Sakurai <Hiroshi_member@pathlink.com>
2004-12-29
news:cqtmid$3no$1@digitaldaemon.com
nntp://digitalmars.com/digitalmars.D.bugs/2618
http://f17.aaa.livedoor.jp/~labamba/?BugTrack%2F10
author | thomask |
---|---|
date | Wed, 29 Dec 2004 23:12:03 +0000 |
parents | ff42f2c64363 |
children | 17b5647d8463 |
files | reporter.txt run/cast_06.d run/cast_07.d |
diffstat | 3 files changed, 40 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/reporter.txt Sun Dec 26 22:19:33 2004 +0000 +++ b/reporter.txt Wed Dec 29 23:12:03 2004 +0000 @@ -1,4 +1,4 @@ -Thanks to all the bug reporters and for the test case suggestions. +Thanks to all the bug reporters and for the test case suggestions. Andy Friesen <andy@ikagames.com> @@ -17,6 +17,7 @@ Derek Parnell <derek@psych.ward> Geoff Hickey <Geoff_member@pathlink.com> Hauke Duden <H.NS.Duden@gmx.net> +Hiroshi Sakurai <Hiroshi_member@pathlink.com> heretic <heretic_member@pathlink.com> Ilya Zaitseff <sark7@mail333.com> Knud Sörensen <knud@NetRunner.all-technology.com>
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/cast_06.d Wed Dec 29 23:12:03 2004 +0000 @@ -0,0 +1,20 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Hiroshi Sakurai <Hiroshi_member@pathlink.com> +// @date@ 2004-12-29 +// @uri@ news:cqtmid$3no$1@digitaldaemon.com +// @url@ nntp://digitalmars.com/digitalmars.D.bugs/2618 +// @url@ http://f17.aaa.livedoor.jp/~labamba/?BugTrack%2F10 + +module dstress.run.cast_06; + +int main(){ + uint u; + int a = 1; + int b = 31; + u = a << b; + assert( u == 0b1000_0000__0000_0000__0000_0000__0000_0000u); + return 0; +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/cast_07.d Wed Dec 29 23:12:03 2004 +0000 @@ -0,0 +1,18 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Hiroshi Sakurai <Hiroshi_member@pathlink.com> +// @date@ 2004-12-29 +// @uri@ news:cqtmid$3no$1@digitaldaemon.com +// @url@ nntp://digitalmars.com/digitalmars.D.bugs/2618 +// @url@ http://f17.aaa.livedoor.jp/~labamba/?BugTrack%2F10 + +module dstress.run.cast_07; + +int main(){ + uint u; + u = 1 << 31; + assert( u == 0b1000_0000__0000_0000__0000_0000__0000_0000u); + return 0; +}