Mercurial > projects > dstress
changeset 444:0c20d706bca3
Enum.max / Enum.min (double entries)
zwang <nehzgnaw@gmail.com>
2005-04-17
news:d3srd1$11a7$1@digitaldaemon.com
author | thomask |
---|---|
date | Mon, 18 Apr 2005 07:04:52 +0000 |
parents | ef476381ee92 |
children | c0dd17f9030b |
files | run/enum_16.d |
diffstat | 1 files changed, 22 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/enum_16.d Mon Apr 18 07:04:52 2005 +0000 @@ -0,0 +1,22 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ zwang <nehzgnaw@gmail.com> +// @date@ 2005-04-17 +// @uri@ news:d3srd1$11a7$1@digitaldaemon.com + +module dstress.run.enum_16; + +int main(){ + enum E{ + a=-1, + b=-1, + c=-3, + d=-3 + } + + assert(E.min==-3); + assert(E.max==-1); + return 0; +}