Mercurial > projects > dstress
diff nocompile/bounds_checking_04.d @ 450:7ca759f6f428
array[-1]
author | thomask |
---|---|
date | Mon, 18 Apr 2005 20:35:31 +0000 |
parents | |
children | 7300d411e85c |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/bounds_checking_04.d Mon Apr 18 20:35:31 2005 +0000 @@ -0,0 +1,15 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// __DSTRESS_ELINE__ 12 + +module dstress.nocompile.bounds_checking_04; + +int main(){ + byte[5] a; + const int i=-1; + a[i]=3; + + return 0; +}