Mercurial > projects > dstress
annotate run/typeid_40.d @ 1619:bebc7472a832
Fix #7.
author | Christian Kamm <kamm incasoftware de> |
---|---|
date | Sat, 07 Nov 2009 18:55:30 +0100 |
parents | 111c6744074d |
children |
rev | line source |
---|---|
133 | 1 /* $HeadURL$ |
2 * $Date$ | |
3 * $Author$ | |
4 */ | |
5 | |
6 module dstress.run.typeid_40; | |
7 | |
8 int main(){ | |
9 TypeInfo ti = typeid(ulong); | |
10 assert(!(ti is null)); | |
342 | 11 assert(ti.tsize==(ulong).sizeof); |
334
c1ca2f37362b
added TypeInfo.toString checks to detect 'cheating'
thomask
parents:
133
diff
changeset
|
12 assert(ti.toString()=="ulong"); |
133 | 13 return 0; |
14 } |