Mercurial > projects > dstress
annotate run/typeid_37.d @ 334:c1ca2f37362b
added TypeInfo.toString checks to detect 'cheating'
author | thomask |
---|---|
date | Fri, 18 Mar 2005 11:35:53 +0000 |
parents | f4e9069c7993 |
children | 111c6744074d |
rev | line source |
---|---|
133 | 1 /* $HeadURL$ |
2 * $Date$ | |
3 * $Author$ | |
4 */ | |
5 | |
6 module dstress.run.typeid_37; | |
7 | |
8 int main(){ | |
9 TypeInfo ti = typeid(long); | |
10 assert(!(ti is null)); | |
334
c1ca2f37362b
added TypeInfo.toString checks to detect 'cheating'
thomask
parents:
133
diff
changeset
|
11 assert(ti.toString()=="long"); |
133 | 12 return 0; |
13 } |