Mercurial > projects > dstress
view run/typeid_16.d @ 342:111c6744074d
typeid(type).tsize == type.sizeof
ahiru <ahiru@1dk.jp>
2005-03-01
news:d015pr$1t80$1@digitaldaemon.com
author | thomask |
---|---|
date | Tue, 22 Mar 2005 08:02:21 +0000 |
parents | c1ca2f37362b |
children | 38ea1bb385b6 |
line wrap: on
line source
/* $HeadURL$ * $Date$ * $Author$ */ module dstress.run.typeid_16; int main(){ TypeInfo ti = typeid(bit); assert(!(ti is null)); assert(ti.tsize==bit.sizeof); assert(ti.toString()=="bit"); return 0; }