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