comparison run/n/new_28_C.d @ 1315:37c81d3385b7

[Issue 765] ArrayBoundsError when assigning slice of pointer Frits van Bommel <fvbommel@wxs.nl> 2006-12-28 http://d.puremagic.com/issues/show_bug.cgi?id=765
author thomask
date Sun, 31 Dec 2006 14:28:54 +0000
parents
children
comparison
equal deleted inserted replaced
1314:198b48f868e6 1315:37c81d3385b7
1 // $HeadURL$
2 // $Date$
3 // $Author$
4
5 // @author@ Frits van Bommel <fvbommel@wxs.nl>
6 // @date@ 2006-12-28
7 // @uri@ http://d.puremagic.com/issues/show_bug.cgi?id=765
8 // @desc@ [Issue 765] ArrayBoundsError when assigning slice of pointer
9
10 module dstress.run.n.new_28_C;
11
12 int main(){
13 uint* x = (new uint[](5)).ptr;
14
15 x[0 .. 0] = 1;
16
17 if(x[0] != 0){
18 assert(0);
19 }
20
21 return 0;
22 }