Mercurial > projects > dstress
annotate run/typeid_71.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_71; | |
7 | |
8 struct MyStruct{ | |
9 int dummy; | |
10 } | |
11 | |
12 int main(){ | |
13 TypeInfo ti = typeid(MyStruct[]); | |
14 assert(!(ti is null)); | |
334
c1ca2f37362b
added TypeInfo.toString checks to detect 'cheating'
thomask
parents:
133
diff
changeset
|
15 assert(ti.toString()=="MyStruct[]"); |
133 | 16 return 0; |
17 } |