Mercurial > projects > dstress
annotate run/typeid_79.d @ 467:5d6bb14f6415
fixed assertion typo
author | thomask |
---|---|
date | Sat, 23 Apr 2005 05:45:45 +0000 |
parents | ec6d35cccfb5 |
children | 0db095345640 |
rev | line source |
---|---|
136 | 1 /* $HeadURL$ |
2 * $Date$ | |
3 * $Author$ | |
4 */ | |
5 | |
6 module dstress.run.typeid_78; | |
7 | |
8 union MyUnion{ | |
9 int i; | |
10 byte b; | |
11 } | |
12 | |
13 int main(){ | |
14 TypeInfo ti = typeid(MyUnion[]); | |
15 assert(!(ti is null)); | |
342 | 16 assert(ti.tsize==(MyUnion[]).sizeof); |
467 | 17 assert(ti.toString()=="dstress.run.typeid_78.MyUnion[]"); |
136 | 18 return 0; |
19 } |