Mercurial > projects > dstress
annotate run/o/opCat_24_D.d @ 1320:daef239f37cf
sed'ed replacement of new:...http.d.puremagic.com/issues/ with http://d.puremagic.com/issues/show_bug.cgi?...
author | thomask |
---|---|
date | Sun, 31 Dec 2006 19:59:08 +0000 |
parents | 0fb7b0fc000a |
children |
rev | line source |
---|---|
1152
0fb7b0fc000a
[Issue 381] New: array literals are broken; Internal error: ..\ztc\cod1.c 2525
thomask
parents:
diff
changeset
|
1 // $HeadURL$ |
0fb7b0fc000a
[Issue 381] New: array literals are broken; Internal error: ..\ztc\cod1.c 2525
thomask
parents:
diff
changeset
|
2 // $Date$ |
0fb7b0fc000a
[Issue 381] New: array literals are broken; Internal error: ..\ztc\cod1.c 2525
thomask
parents:
diff
changeset
|
3 // $Author$ |
0fb7b0fc000a
[Issue 381] New: array literals are broken; Internal error: ..\ztc\cod1.c 2525
thomask
parents:
diff
changeset
|
4 |
0fb7b0fc000a
[Issue 381] New: array literals are broken; Internal error: ..\ztc\cod1.c 2525
thomask
parents:
diff
changeset
|
5 // @author@ Tomasz Stachowiak <h3r3tic@mat.uni.torun.pl> |
0fb7b0fc000a
[Issue 381] New: array literals are broken; Internal error: ..\ztc\cod1.c 2525
thomask
parents:
diff
changeset
|
6 // @date@ 2006-09-27 |
1320
daef239f37cf
sed'ed replacement of new:...http.d.puremagic.com/issues/ with http://d.puremagic.com/issues/show_bug.cgi?...
thomask
parents:
1152
diff
changeset
|
7 // @uri@ http://d.puremagic.com/issues/show_bug.cgi?id=381 |
1152
0fb7b0fc000a
[Issue 381] New: array literals are broken; Internal error: ..\ztc\cod1.c 2525
thomask
parents:
diff
changeset
|
8 // @desc@ [Issue 381] New: array literals are broken; Internal error: ..\ztc\cod1.c 2525 |
0fb7b0fc000a
[Issue 381] New: array literals are broken; Internal error: ..\ztc\cod1.c 2525
thomask
parents:
diff
changeset
|
9 |
0fb7b0fc000a
[Issue 381] New: array literals are broken; Internal error: ..\ztc\cod1.c 2525
thomask
parents:
diff
changeset
|
10 module dstress.run.o.opCat_24_D; |
0fb7b0fc000a
[Issue 381] New: array literals are broken; Internal error: ..\ztc\cod1.c 2525
thomask
parents:
diff
changeset
|
11 |
0fb7b0fc000a
[Issue 381] New: array literals are broken; Internal error: ..\ztc\cod1.c 2525
thomask
parents:
diff
changeset
|
12 int main(){ |
0fb7b0fc000a
[Issue 381] New: array literals are broken; Internal error: ..\ztc\cod1.c 2525
thomask
parents:
diff
changeset
|
13 int[] x; |
0fb7b0fc000a
[Issue 381] New: array literals are broken; Internal error: ..\ztc\cod1.c 2525
thomask
parents:
diff
changeset
|
14 x = [1] ~ 2; |
0fb7b0fc000a
[Issue 381] New: array literals are broken; Internal error: ..\ztc\cod1.c 2525
thomask
parents:
diff
changeset
|
15 |
0fb7b0fc000a
[Issue 381] New: array literals are broken; Internal error: ..\ztc\cod1.c 2525
thomask
parents:
diff
changeset
|
16 if(x.length != 2){ |
0fb7b0fc000a
[Issue 381] New: array literals are broken; Internal error: ..\ztc\cod1.c 2525
thomask
parents:
diff
changeset
|
17 assert(0); |
0fb7b0fc000a
[Issue 381] New: array literals are broken; Internal error: ..\ztc\cod1.c 2525
thomask
parents:
diff
changeset
|
18 } |
0fb7b0fc000a
[Issue 381] New: array literals are broken; Internal error: ..\ztc\cod1.c 2525
thomask
parents:
diff
changeset
|
19 if(x[0] != 1 || x[1] != 2){ |
0fb7b0fc000a
[Issue 381] New: array literals are broken; Internal error: ..\ztc\cod1.c 2525
thomask
parents:
diff
changeset
|
20 assert(0); |
0fb7b0fc000a
[Issue 381] New: array literals are broken; Internal error: ..\ztc\cod1.c 2525
thomask
parents:
diff
changeset
|
21 } |
0fb7b0fc000a
[Issue 381] New: array literals are broken; Internal error: ..\ztc\cod1.c 2525
thomask
parents:
diff
changeset
|
22 |
0fb7b0fc000a
[Issue 381] New: array literals are broken; Internal error: ..\ztc\cod1.c 2525
thomask
parents:
diff
changeset
|
23 return 0; |
0fb7b0fc000a
[Issue 381] New: array literals are broken; Internal error: ..\ztc\cod1.c 2525
thomask
parents:
diff
changeset
|
24 } |
0fb7b0fc000a
[Issue 381] New: array literals are broken; Internal error: ..\ztc\cod1.c 2525
thomask
parents:
diff
changeset
|
25 |