comparison run/t/typeinfo_03_A.d @ 1520:b5c0842014ef

adapted for DMD-1.013
author thomask
date Fri, 27 Apr 2007 17:23:42 +0000
parents 6666662e4363
children
comparison
equal deleted inserted replaced
1519:f71bd33bb278 1520:b5c0842014ef
15 15
16 int* a = new int; 16 int* a = new int;
17 int* b = new int; 17 int* b = new int;
18 *a = -10; 18 *a = -10;
19 *b = 10; 19 *b = 10;
20 20 if(t.compare(a, b) < 0){
21 if(-1 < t.compare(a, b)){
22 assert(0); 21 assert(0);
23 } 22 }
24 if(t.compare(b, a) < 1){ 23 if(0 < t.compare(b, a)){
25 assert(0); 24 assert(0);
26 } 25 }
27 26
28 return 0; 27 return 0;
29 } 28 }