comparison run/typeid_51.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_51; 6 module dstress.run.typeid_51;
7 7
8 int main(){ 8 int main(){
9 TypeInfo ti = typeid(idouble); 9 TypeInfo ti = typeid(idouble);
10 assert(!(ti is null)); 10 assert(!(ti is null));
11 assert(ti.tsize==(idouble).sizeof);
11 assert(ti.toString()=="idouble"); 12 assert(ti.toString()=="idouble");
12 return 0; 13 return 0;
13 } 14 }