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