Mercurial > projects > dstress
annotate run/typeid_33.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 |
rev | line source |
---|---|
133 | 1 /* $HeadURL$ |
2 * $Date$ | |
3 * $Author$ | |
4 */ | |
5 | |
6 module dstress.run.typeid_33; | |
7 | |
8 int main(){ | |
9 TypeInfo ti = typeid(int*); | |
10 assert(!(ti is null)); | |
342 | 11 assert(ti.tsize==(int*).sizeof); |
334
c1ca2f37362b
added TypeInfo.toString checks to detect 'cheating'
thomask
parents:
133
diff
changeset
|
12 assert(ti.toString()=="int*"); |
133 | 13 return 0; |
14 } |