Mercurial > projects > dstress
view run/typeid_79.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 | 5d6bb14f6415 |
children | ecb96b2bf5cb |
line wrap: on
line source
/* $HeadURL$ * $Date$ * $Author$ */ module dstress.run.typeid_78; union MyUnion{ int i; byte b; } int main(){ TypeInfo ti = typeid(MyUnion[]); assert(!(ti is null)); assert(ti); assert(ti.tsize==(MyUnion[]).sizeof); assert(ti.toString()=="dstress.run.typeid_78.MyUnion[]"); TypeInfo_Array ta = cast(TypeInfo_Array) ti; assert(!(ta is null)); assert(ta); assert(ta.tsize==(MyUnion[]).sizeof); assert(ta.toString()=="dstress.run.typeid_78.MyUnion[]"); return 0; }