374
|
1 // $HeadURL$
|
|
2 // $Date$
|
|
3 // $Author$
|
|
4
|
|
5 module dstress.run.typeid_01;
|
|
6
|
2
|
7 class MyClass{
|
|
8 }
|
|
9
|
|
10 int main(){
|
|
11 TypeInfo ti = typeid(MyClass[]);
|
1086
|
12 if(ti is null){
|
|
13 assert(0);
|
|
14 }
|
|
15 if(!ti){
|
|
16 assert(0);
|
|
17 }
|
|
18 if(ti.tsize != (MyClass[]).sizeof){
|
|
19 assert(0);
|
|
20 }
|
|
21 if(ti.toString != "dstress.run.typeid_01.MyClass[]"){
|
|
22 assert(0);
|
|
23 }
|
538
|
24
|
|
25 TypeInfo_Array ta = cast(TypeInfo_Array) ti;
|
1086
|
26 if(ta is null){
|
|
27 assert(0);
|
|
28 }
|
|
29 if(!ta){
|
|
30 assert(0);
|
|
31 }
|
|
32 if(ta.tsize != (MyClass[]).sizeof){
|
|
33 assert(0);
|
|
34 }
|
|
35 if(ta.toString != "dstress.run.typeid_01.MyClass[]"){
|
|
36 assert(0);
|
|
37 }
|
2
|
38
|
|
39 return 0;
|
|
40 }
|