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 module dstress.run.o.opCmp_05_D;
|
|
11
|
|
12 int main(){
|
|
13 static if(128<0){
|
|
14 assert(0);
|
|
15 }
|
|
16
|
|
17 static if(128<=0){
|
|
18 assert(0);
|
|
19 }
|
1091
|
20
|
627
|
21 static if(128>0){
|
|
22 assert(1);
|
|
23 }else{
|
|
24 assert(0);
|
|
25 }
|
1091
|
26
|
627
|
27 static if(128>=0){
|
|
28 assert(1);
|
|
29 }else{
|
|
30 assert(0);
|
|
31 }
|
1091
|
32
|
627
|
33 return 0;
|
|
34 }
|