Mercurial > projects > dstress
annotate run/o/opCatAssign_20_A.d @ 1282:75288b41b6c7
[Issue 720] New: bug in array literal parsing with append
Kevin Bealer <kevinbealer@gmail.com>
2006-12-22
http://d.puremagic.com/issues/show_bug.cgi?id=720
author | thomask |
---|---|
date | Tue, 26 Dec 2006 14:21:14 +0000 |
parents | |
children |
rev | line source |
---|---|
1282
75288b41b6c7
[Issue 720] New: bug in array literal parsing with append
thomask
parents:
diff
changeset
|
1 // $HeadURL$ |
75288b41b6c7
[Issue 720] New: bug in array literal parsing with append
thomask
parents:
diff
changeset
|
2 // $Date$ |
75288b41b6c7
[Issue 720] New: bug in array literal parsing with append
thomask
parents:
diff
changeset
|
3 // $Author$ |
75288b41b6c7
[Issue 720] New: bug in array literal parsing with append
thomask
parents:
diff
changeset
|
4 |
75288b41b6c7
[Issue 720] New: bug in array literal parsing with append
thomask
parents:
diff
changeset
|
5 // @author@ Kevin Bealer <kevinbealer@gmail.com> |
75288b41b6c7
[Issue 720] New: bug in array literal parsing with append
thomask
parents:
diff
changeset
|
6 // @date@ 2006-12-22 |
75288b41b6c7
[Issue 720] New: bug in array literal parsing with append
thomask
parents:
diff
changeset
|
7 // @uri@ http://d.puremagic.com/issues/show_bug.cgi?id=720 |
75288b41b6c7
[Issue 720] New: bug in array literal parsing with append
thomask
parents:
diff
changeset
|
8 // @desc@ [Issue 720] New: bug in array literal parsing with append |
75288b41b6c7
[Issue 720] New: bug in array literal parsing with append
thomask
parents:
diff
changeset
|
9 |
75288b41b6c7
[Issue 720] New: bug in array literal parsing with append
thomask
parents:
diff
changeset
|
10 module dstress.run.o.opCatAssign_20_A; |
75288b41b6c7
[Issue 720] New: bug in array literal parsing with append
thomask
parents:
diff
changeset
|
11 |
75288b41b6c7
[Issue 720] New: bug in array literal parsing with append
thomask
parents:
diff
changeset
|
12 int main(){ |
75288b41b6c7
[Issue 720] New: bug in array literal parsing with append
thomask
parents:
diff
changeset
|
13 int[][] pos; |
75288b41b6c7
[Issue 720] New: bug in array literal parsing with append
thomask
parents:
diff
changeset
|
14 pos ~= [7, 13]; |
75288b41b6c7
[Issue 720] New: bug in array literal parsing with append
thomask
parents:
diff
changeset
|
15 |
75288b41b6c7
[Issue 720] New: bug in array literal parsing with append
thomask
parents:
diff
changeset
|
16 if(pos.length != 1){ |
75288b41b6c7
[Issue 720] New: bug in array literal parsing with append
thomask
parents:
diff
changeset
|
17 assert(0); |
75288b41b6c7
[Issue 720] New: bug in array literal parsing with append
thomask
parents:
diff
changeset
|
18 } |
75288b41b6c7
[Issue 720] New: bug in array literal parsing with append
thomask
parents:
diff
changeset
|
19 if(pos[0].length != 2){ |
75288b41b6c7
[Issue 720] New: bug in array literal parsing with append
thomask
parents:
diff
changeset
|
20 assert(0); |
75288b41b6c7
[Issue 720] New: bug in array literal parsing with append
thomask
parents:
diff
changeset
|
21 } |
75288b41b6c7
[Issue 720] New: bug in array literal parsing with append
thomask
parents:
diff
changeset
|
22 if(pos[0][0] != 7){ |
75288b41b6c7
[Issue 720] New: bug in array literal parsing with append
thomask
parents:
diff
changeset
|
23 assert(0); |
75288b41b6c7
[Issue 720] New: bug in array literal parsing with append
thomask
parents:
diff
changeset
|
24 } |
75288b41b6c7
[Issue 720] New: bug in array literal parsing with append
thomask
parents:
diff
changeset
|
25 if(pos[0][1] != 13){ |
75288b41b6c7
[Issue 720] New: bug in array literal parsing with append
thomask
parents:
diff
changeset
|
26 assert(0); |
75288b41b6c7
[Issue 720] New: bug in array literal parsing with append
thomask
parents:
diff
changeset
|
27 } |
75288b41b6c7
[Issue 720] New: bug in array literal parsing with append
thomask
parents:
diff
changeset
|
28 |
75288b41b6c7
[Issue 720] New: bug in array literal parsing with append
thomask
parents:
diff
changeset
|
29 return 0; |
75288b41b6c7
[Issue 720] New: bug in array literal parsing with append
thomask
parents:
diff
changeset
|
30 } |