Mercurial > projects > dstress
view run/typeid_62.d @ 1542:d8e1feb9e66e
[Issue 1152] Inline assembler: cannot use properties of types
Matti Niemenmaa (Deewiant) <deewiant@gmail.com>
2007-05-31
http://d.puremagic.com/issues/show_bug.cgi?id=1152
author | thomask |
---|---|
date | Sun, 01 Jul 2007 13:19:07 +0000 |
parents | 0db095345640 |
children |
line wrap: on
line source
/* $HeadURL$ * $Date$ * $Author$ */ module dstress.run.typeid_62; int main(){ TypeInfo ti = typeid(char[]); assert(!(ti is null)); assert(ti); assert(ti.tsize==(char[]).sizeof); assert(ti.toString()=="char[]"); TypeInfo_Array ta = cast(TypeInfo_Array) ti; assert(!(ta is null)); assert(ta); assert(ta.tsize==(char[]).sizeof); assert(ta.toString()=="char[]"); return 0; }