annotate nocompile/bounds_checking_04.d @ 450:7ca759f6f428

array[-1]
author thomask
date Mon, 18 Apr 2005 20:35:31 +0000
parents
children 7300d411e85c
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
450
7ca759f6f428 array[-1]
thomask
parents:
diff changeset
1 // $HeadURL$
7ca759f6f428 array[-1]
thomask
parents:
diff changeset
2 // $Date$
7ca759f6f428 array[-1]
thomask
parents:
diff changeset
3 // $Author$
7ca759f6f428 array[-1]
thomask
parents:
diff changeset
4
7ca759f6f428 array[-1]
thomask
parents:
diff changeset
5 // __DSTRESS_ELINE__ 12
7ca759f6f428 array[-1]
thomask
parents:
diff changeset
6
7ca759f6f428 array[-1]
thomask
parents:
diff changeset
7 module dstress.nocompile.bounds_checking_04;
7ca759f6f428 array[-1]
thomask
parents:
diff changeset
8
7ca759f6f428 array[-1]
thomask
parents:
diff changeset
9 int main(){
7ca759f6f428 array[-1]
thomask
parents:
diff changeset
10 byte[5] a;
7ca759f6f428 array[-1]
thomask
parents:
diff changeset
11 const int i=-1;
7ca759f6f428 array[-1]
thomask
parents:
diff changeset
12 a[i]=3;
7ca759f6f428 array[-1]
thomask
parents:
diff changeset
13
7ca759f6f428 array[-1]
thomask
parents:
diff changeset
14 return 0;
7ca759f6f428 array[-1]
thomask
parents:
diff changeset
15 }