Mercurial > projects > dstress
view nocompile/l/length_01.d @ 1576:b3e16c86558e
[Issue 1398] New: GDC doesn't generate correct code
<mariusmuja@gmail.com>
2007-08-04
http://d.puremagic.com/issues/show_bug.cgi?id=1398
author | thomask |
---|---|
date | Thu, 21 Feb 2008 15:20:08 +0000 |
parents | 52c9e86b6486 |
children |
line wrap: on
line source
// $HeadURL$ // $Date$ // $Author$ // @uri@ http://d.puremagic.com/issues/show_bug.cgi?id=950 // @desc@ [Issue 950] Missing filename and line number: conflict between implicit length in [...] and explicit length declared in the scope // __DSTRESS_ELINE__ 19 module dstress.nocompile.l.length_01; int main(){ byte[3] array; array[0]=2; array[1]=4; array[2]=8; int length=1; assert(length-1==0); assert(array[length-1]==8); return 0; }