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