comparison run/typeid_67.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
comparison
equal deleted inserted replaced
341:b541f2516cd4 342:111c6744074d
6 module dstress.run.typeid_67; 6 module dstress.run.typeid_67;
7 7
8 int main(){ 8 int main(){
9 TypeInfo ti = typeid(dchar); 9 TypeInfo ti = typeid(dchar);
10 assert(!(ti is null)); 10 assert(!(ti is null));
11 assert(ti.tsize==(dchar).sizeof);
11 assert(ti.toString()=="dchar"); 12 assert(ti.toString()=="dchar");
12 return 0; 13 return 0;
13 } 14 }