627
|
1 // $HeadURL$
|
|
2 // $Date$
|
|
3 // $Author$
|
|
4
|
|
5 // @author@ David L. Davis <SpottedTiger@yahoo.com>
|
|
6 // @date@ 2005-08-10
|
1489
|
7 // @uri@ http://www.digitalmars.com/pnews/read.php?server=news.digitalmars.com&group=digitalmars.D.bugs&artnum=4752
|
627
|
8 // @desc@ Negative numbers are treated as Positive in compares.
|
|
9
|
|
10
|
|
11 module dstress.run.o.opCmp_05_B;
|
|
12
|
|
13 int main(){
|
|
14 if(-128<0){
|
|
15 assert(1);
|
|
16 }else{
|
|
17 assert(0);
|
|
18 }
|
|
19
|
|
20 if(-128<=0){
|
|
21 assert(1);
|
|
22 }else{
|
|
23 assert(0);
|
|
24 }
|
1091
|
25
|
627
|
26 if(-128>0){
|
|
27 assert(0);
|
|
28 }
|
1091
|
29
|
627
|
30 if(-128>=0){
|
|
31 assert(0);
|
|
32 }
|
1091
|
33
|
627
|
34 return 0;
|
|
35 }
|