annotate run/typeid_84.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
children a82c4eea402e
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
342
111c6744074d typeid(type).tsize == type.sizeof
thomask
parents:
diff changeset
1 // $HeadURL$
111c6744074d typeid(type).tsize == type.sizeof
thomask
parents:
diff changeset
2 // $Date$
111c6744074d typeid(type).tsize == type.sizeof
thomask
parents:
diff changeset
3 // $Author$
111c6744074d typeid(type).tsize == type.sizeof
thomask
parents:
diff changeset
4
111c6744074d typeid(type).tsize == type.sizeof
thomask
parents:
diff changeset
5 // @author@ ahiru <ahiru@1dk.jp>
111c6744074d typeid(type).tsize == type.sizeof
thomask
parents:
diff changeset
6 // @date@ 2005-03-01
111c6744074d typeid(type).tsize == type.sizeof
thomask
parents:
diff changeset
7 // @uri@ news:d015pr$1t80$1@digitaldaemon.com
111c6744074d typeid(type).tsize == type.sizeof
thomask
parents:
diff changeset
8
111c6744074d typeid(type).tsize == type.sizeof
thomask
parents:
diff changeset
9 module dstress.run.typeid_84;
111c6744074d typeid(type).tsize == type.sizeof
thomask
parents:
diff changeset
10
111c6744074d typeid(type).tsize == type.sizeof
thomask
parents:
diff changeset
11 int main(){
111c6744074d typeid(type).tsize == type.sizeof
thomask
parents:
diff changeset
12 alias void function() func;
111c6744074d typeid(type).tsize == type.sizeof
thomask
parents:
diff changeset
13 TypeInfo ti = typeid(func);
111c6744074d typeid(type).tsize == type.sizeof
thomask
parents:
diff changeset
14 assert(ti !== null);
111c6744074d typeid(type).tsize == type.sizeof
thomask
parents:
diff changeset
15 assert(ti.tsize == func.sizeof);
111c6744074d typeid(type).tsize == type.sizeof
thomask
parents:
diff changeset
16 return 0;
111c6744074d typeid(type).tsize == type.sizeof
thomask
parents:
diff changeset
17 }