Mercurial > projects > dstress
comparison run/sort_07.d @ 297:dc5c9509a605
sort ifloat/ireal/idouble
zwang <nehzgnaw@gmail.com>
2005-02-19
news:cv7gn5$2irj$1@digitaldaemon.com
nntp://digitalmars.com/digitalmars.D.bugs/3022
author | thomask |
---|---|
date | Sat, 19 Feb 2005 15:35:05 +0000 |
parents | 24da167d3f07 |
children |
comparison
equal
deleted
inserted
replaced
296:8123d177d3ca | 297:dc5c9509a605 |
---|---|
1 // $HeadURL$ | |
2 // $Date$ | |
3 // $Author$ | |
4 | |
5 module dstress.run.sort_07; | |
6 | |
1 int main(){ | 7 int main(){ |
2 short a[]; | 8 short a[]; |
3 a.length=7; | 9 a.length=7; |
4 a[0]=short.max; | 10 a[0]=short.max; |
5 a[1]=short.max-1; | 11 a[1]=short.max-1; |
27 assert(b[3]==0); | 33 assert(b[3]==0); |
28 assert(b[4]==1); | 34 assert(b[4]==1); |
29 assert(b[5]==short.max-1); | 35 assert(b[5]==short.max-1); |
30 assert(b[6]==short.max); | 36 assert(b[6]==short.max); |
31 | 37 |
38 assert(&a != &b); | |
39 | |
32 return 0; | 40 return 0; |
33 } | 41 } |