Mercurial > projects > dstress
annotate run/typeid_79.d @ 1612:1f76d5b2f458
Fix typo in testcase run/typeid_79
author | Christian Kamm <kamm incasoftware de> |
---|---|
date | Sun, 10 May 2009 11:55:53 +0200 |
parents | ecb96b2bf5cb |
children |
rev | line source |
---|---|
630 | 1 // $HeadURL$ |
2 // $Date$ | |
3 // $Author$ | |
136 | 4 |
630 | 5 module dstress.run.typeid_79; |
136 | 6 |
7 union MyUnion{ | |
8 int i; | |
9 byte b; | |
10 } | |
11 | |
12 int main(){ | |
13 TypeInfo ti = typeid(MyUnion[]); | |
14 assert(!(ti is null)); | |
535 | 15 assert(ti); |
342 | 16 assert(ti.tsize==(MyUnion[]).sizeof); |
1612
1f76d5b2f458
Fix typo in testcase run/typeid_79
Christian Kamm <kamm incasoftware de>
parents:
630
diff
changeset
|
17 assert(ti.toString()=="dstress.run.typeid_79.MyUnion[]"); |
535 | 18 |
19 TypeInfo_Array ta = cast(TypeInfo_Array) ti; | |
20 assert(!(ta is null)); | |
21 assert(ta); | |
22 assert(ta.tsize==(MyUnion[]).sizeof); | |
1612
1f76d5b2f458
Fix typo in testcase run/typeid_79
Christian Kamm <kamm incasoftware de>
parents:
630
diff
changeset
|
23 assert(ta.toString()=="dstress.run.typeid_79.MyUnion[]"); |
535 | 24 |
136 | 25 return 0; |
26 } |