# HG changeset patch # User thomask # Date 1159512945 0 # Node ID 31cf6fcdd6d73af223de76dc36e5f13bbb099a52 # Parent bd7f77817bf794cee76e20ef775a0aeae0ecddc9 [Issue 378] New: Assertion failure: '0' on line 216 in file 'init.c' Tomasz Stachowiak 2006-09-27 news:bug-378-3@http.d.puremagic.com/issues/ diff -r bd7f77817bf7 -r 31cf6fcdd6d7 run/t/typedef_20_A.d --- /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 +// @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; +} diff -r bd7f77817bf7 -r 31cf6fcdd6d7 run/t/typedef_20_B.d --- /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 +// @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; +}