Mercurial > projects > dstress
annotate run/typeid_80.d @ 1597:8b9d4d2f925a
Fix typos in complex tests. See D bug 614.
author | Christian Kamm <kamm incasoftware de> |
---|---|
date | Tue, 09 Sep 2008 16:53:58 +0200 |
parents | ec6d35cccfb5 |
children |
rev | line source |
---|---|
136 | 1 /* $HeadURL$ |
2 * $Date$ | |
3 * $Author$ | |
4 */ | |
5 | |
6 module dstress.run.typeid_80; | |
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); |
435 | 17 assert(ti.toString()=="dstress.run.typeid_80.MyUnion*"); |
136 | 18 return 0; |
19 } |