Mercurial > projects > dstress
comparison 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 |
comparison
equal
deleted
inserted
replaced
1611:9f94be6a5ace | 1612:1f76d5b2f458 |
---|---|
12 int main(){ | 12 int main(){ |
13 TypeInfo ti = typeid(MyUnion[]); | 13 TypeInfo ti = typeid(MyUnion[]); |
14 assert(!(ti is null)); | 14 assert(!(ti is null)); |
15 assert(ti); | 15 assert(ti); |
16 assert(ti.tsize==(MyUnion[]).sizeof); | 16 assert(ti.tsize==(MyUnion[]).sizeof); |
17 assert(ti.toString()=="dstress.run.typeid_78.MyUnion[]"); | 17 assert(ti.toString()=="dstress.run.typeid_79.MyUnion[]"); |
18 | 18 |
19 TypeInfo_Array ta = cast(TypeInfo_Array) ti; | 19 TypeInfo_Array ta = cast(TypeInfo_Array) ti; |
20 assert(!(ta is null)); | 20 assert(!(ta is null)); |
21 assert(ta); | 21 assert(ta); |
22 assert(ta.tsize==(MyUnion[]).sizeof); | 22 assert(ta.tsize==(MyUnion[]).sizeof); |
23 assert(ta.toString()=="dstress.run.typeid_78.MyUnion[]"); | 23 assert(ta.toString()=="dstress.run.typeid_79.MyUnion[]"); |
24 | 24 |
25 return 0; | 25 return 0; |
26 } | 26 } |