Mercurial > projects > dstress
view run/typeid_61.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 | 9e0847cf535a |
line wrap: on
line source
/* $HeadURL$ * $Date$ * $Author$ */ module dstress.run.typeid_61; int main(){ TypeInfo ti = typeid(char); assert(!(ti is null)); assert(ti.tsize==(char*).sizeof); assert(ti.toString()=="char"); return 0; }