Mercurial > projects > dstress
changeset 1154:31cf6fcdd6d7
[Issue 378] New: Assertion failure: '0' on line 216 in file 'init.c'
Tomasz Stachowiak <h3r3tic@mat.uni.torun.pl>
2006-09-27
news:bug-378-3@http.d.puremagic.com/issues/
author | thomask |
---|---|
date | Fri, 29 Sep 2006 06:55:45 +0000 |
parents | bd7f77817bf7 |
children | 484211f83bfc |
files | run/t/typedef_20_A.d run/t/typedef_20_B.d |
diffstat | 2 files changed, 54 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/t/typedef_20_A.d Fri Sep 29 06:55:45 2006 +0000 @@ -0,0 +1,27 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Tomasz Stachowiak <h3r3tic@mat.uni.torun.pl> +// @date@ 2006-09-27 +// @uri@ news:bug-378-3@http.d.puremagic.com/issues/ +// @desc@ [Issue 378] New: Assertion failure: '0' on line 216 in file 'init.c' + +module dstress.run.t.typedef_20_A; + +struct Ranged(T){ + T value; +} + +typedef Ranged!(int) Degree = {2}; + + +int main(){ + Degree d; + + if(d.value != 2){ + assert(0); + } + + return 0; +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/t/typedef_20_B.d Fri Sep 29 06:55:45 2006 +0000 @@ -0,0 +1,27 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Tomasz Stachowiak <h3r3tic@mat.uni.torun.pl> +// @date@ 2006-09-27 +// @uri@ news:bug-378-3@http.d.puremagic.com/issues/ +// @desc@ [Issue 378] New: Assertion failure: '0' on line 216 in file 'init.c' + +module dstress.run.t.typedef_20_B; + +struct Ranged(T){ + T value; +} + +typedef Ranged!(char) Degree; + + +int main(){ + Degree d; + + if(d.value != 0xFF){ + assert(0); + } + + return 0; +}