Mercurial > projects > dstress
changeset 233:4f2cada445c3
constant evaluation for enums
Brian Hj?llund <Brian_member@pathlink.com>
2005-01-11
news:cs0tm5$1m35$1@digitaldaemon.com
nttp://news.digitalmars.com/digitalmars.D.bugs/2670
author | thomask |
---|---|
date | Tue, 11 Jan 2005 16:31:24 +0000 |
parents | 2ffaa0006877 |
children | 7363b2c5e738 |
files | compile/const_12.d compile/const_13.d reporter.txt |
diffstat | 3 files changed, 31 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/compile/const_12.d Tue Jan 11 16:31:24 2005 +0000 @@ -0,0 +1,14 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Brian Hjøllund <Brian_member@pathlink.com> +// @date@ 2005-01-11 +// @uri@ news:cs0tm5$1m35$1@digitaldaemon.com +// @url@ nttp://news.digitalmars.com/digitalmars.D.bugs/2670 + +module dstress.compile.const_12; + +const int A = -831; + +const int B = A;
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/compile/const_13.d Tue Jan 11 16:31:24 2005 +0000 @@ -0,0 +1,16 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Brian Hjøllund <Brian_member@pathlink.com> +// @date@ 2005-01-11 +// @uri@ news:cs0tm5$1m35$1@digitaldaemon.com +// @url@ nttp://news.digitalmars.com/digitalmars.D.bugs/2670 + +module dstress.compile.const_13; + +const int A = -831; + +enum{ + B = A +}
--- a/reporter.txt Tue Jan 11 03:58:28 2005 +0000 +++ b/reporter.txt Tue Jan 11 16:31:24 2005 +0000 @@ -8,6 +8,7 @@ Ben Hinkle <bhinkle4@juno.com>, <bhinkle@mathworks.com> Bent Rasmussen <exo@bent-rasmussen.info> berupon <yu@3dcg.ne.jp> +Brian Hjøllund <Brian_member@pathlink.com> Buchan <kbuchan@xtra.co.nz> Burton Radons <burton-radons@shaw.ca> Carlos Santander B. <carlos8294@msn.com>