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