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