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);
|
467
|
17 assert(ti.toString()=="dstress.run.typeid_78.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);
|
|
23 assert(ta.toString()=="dstress.run.typeid_78.MyUnion[]");
|
|
24
|
136
|
25 return 0;
|
|
26 }
|