Mercurial > projects > dstress
annotate run/typeid_38.d @ 535:0db095345640
TypeInfo_Array
Burton Radons <burton-radons@smocky.com>
2005-05-08
news:d5lotd$29j1$1@digitaldaemon.com
author | thomask |
---|---|
date | Sat, 14 May 2005 05:43:26 +0000 |
parents | 111c6744074d |
children | 083f68b5b904 |
rev | line source |
---|---|
133 | 1 /* $HeadURL$ |
2 * $Date$ | |
3 * $Author$ | |
4 */ | |
5 | |
6 module dstress.run.typeid_38; | |
7 | |
8 int main(){ | |
9 TypeInfo ti = typeid(long[]); | |
10 assert(!(ti is null)); | |
535 | 11 assert(ti); |
342 | 12 assert(ti.tsize==(long[]).sizeof); |
334
c1ca2f37362b
added TypeInfo.toString checks to detect 'cheating'
thomask
parents:
133
diff
changeset
|
13 assert(ti.toString()=="long[]"); |
535 | 14 |
15 TypeInfo_Array ta = ast(TypeInfo_Array) ti; | |
16 assert(!(ta is null)); | |
17 assert(ta); | |
18 assert(ta.tsize==(long[]).sizeof); | |
19 assert(ta.toString()=="long[]"); | |
20 | |
133 | 21 return 0; |
22 } |