Mercurial > projects > dstress
comparison run/t/typeinfo_03_B.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 |
---|---|
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 = int.max; | 19 *b = int.max; |
20 | 20 |
21 if(-1 < t.compare(a, b)){ | 21 if(t.compare(a, b) < 0){ |
22 assert(0); | 22 assert(0); |
23 } | 23 } |
24 if(t.compare(b, a) < 1){ | 24 if(0 < t.compare(b, a)){ |
25 assert(0); | 25 assert(0); |
26 } | 26 } |
27 | 27 |
28 return 0; | 28 return 0; |
29 } | 29 } |