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