comparison run/typeid_85.d @ 566:a82c4eea402e

included string mapping tests for function and delegate
author thomask
date Sat, 04 Jun 2005 18:36:29 +0000
parents 111c6744074d
children 32f7f8ce5e51
comparison
equal deleted inserted replaced
565:0c6353267963 566:a82c4eea402e
7 // @uri@ news:d015pr$1t80$1@digitaldaemon.com 7 // @uri@ news:d015pr$1t80$1@digitaldaemon.com
8 8
9 module dstress.run.typeid_85; 9 module dstress.run.typeid_85;
10 10
11 int main(){ 11 int main(){
12 alias int delegate() del; 12 alias byte delegate(int) del;
13 TypeInfo ti = typeid(del); 13 TypeInfo ti = typeid(del);
14 assert(ti !== null); 14 assert(ti !== null);
15 assert(ti.tsize == del.sizeof); 15 assert(ti.tsize == del.sizeof);
16 assert(ti.toString()=="byte delegate(int)");
16 return 0; 17 return 0;
17 } 18 }