annotate run/typeid_20.d @ 1630:d0efa3ae5522 default tip

run/mini/naked_asm5: New x86_64 ABI passes the arguments in reverse order.
author David Nadlinger <code@klickverbot.at>
date Sat, 23 Apr 2011 22:57:32 +0200
parents 7e8e5013a030
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
129
97952bc2ca81 extended typeid tests
thomask
parents:
diff changeset
1 /* $HeadURL$
97952bc2ca81 extended typeid tests
thomask
parents:
diff changeset
2 * $Date$
97952bc2ca81 extended typeid tests
thomask
parents:
diff changeset
3 * $Author$
97952bc2ca81 extended typeid tests
thomask
parents:
diff changeset
4 */
97952bc2ca81 extended typeid tests
thomask
parents:
diff changeset
5
97952bc2ca81 extended typeid tests
thomask
parents:
diff changeset
6 module dstress.run.typeid_20;
97952bc2ca81 extended typeid tests
thomask
parents:
diff changeset
7
97952bc2ca81 extended typeid tests
thomask
parents:
diff changeset
8 int main(){
97952bc2ca81 extended typeid tests
thomask
parents:
diff changeset
9 TypeInfo ti = typeid(byte[]);
1086
7e8e5013a030 gdc-0.19 review
thomask
parents: 535
diff changeset
10 if(ti is null){
7e8e5013a030 gdc-0.19 review
thomask
parents: 535
diff changeset
11 assert(0);
7e8e5013a030 gdc-0.19 review
thomask
parents: 535
diff changeset
12 }
7e8e5013a030 gdc-0.19 review
thomask
parents: 535
diff changeset
13 if(!ti){
7e8e5013a030 gdc-0.19 review
thomask
parents: 535
diff changeset
14 assert(0);
7e8e5013a030 gdc-0.19 review
thomask
parents: 535
diff changeset
15 }
7e8e5013a030 gdc-0.19 review
thomask
parents: 535
diff changeset
16 if(ti.tsize != (byte[]).sizeof){
7e8e5013a030 gdc-0.19 review
thomask
parents: 535
diff changeset
17 assert(0);
7e8e5013a030 gdc-0.19 review
thomask
parents: 535
diff changeset
18 }
7e8e5013a030 gdc-0.19 review
thomask
parents: 535
diff changeset
19 if(ti.toString() != "byte[]"){
7e8e5013a030 gdc-0.19 review
thomask
parents: 535
diff changeset
20 assert(0);
7e8e5013a030 gdc-0.19 review
thomask
parents: 535
diff changeset
21 }
535
0db095345640 TypeInfo_Array
thomask
parents: 342
diff changeset
22
0db095345640 TypeInfo_Array
thomask
parents: 342
diff changeset
23 TypeInfo_Array ta = cast(TypeInfo_Array) ti;
1086
7e8e5013a030 gdc-0.19 review
thomask
parents: 535
diff changeset
24 if(ta is null){
7e8e5013a030 gdc-0.19 review
thomask
parents: 535
diff changeset
25 assert(0);
7e8e5013a030 gdc-0.19 review
thomask
parents: 535
diff changeset
26 }
7e8e5013a030 gdc-0.19 review
thomask
parents: 535
diff changeset
27 if(!ta){
7e8e5013a030 gdc-0.19 review
thomask
parents: 535
diff changeset
28 assert(0);
7e8e5013a030 gdc-0.19 review
thomask
parents: 535
diff changeset
29 }
7e8e5013a030 gdc-0.19 review
thomask
parents: 535
diff changeset
30 if(ta.tsize != (byte[]).sizeof){
7e8e5013a030 gdc-0.19 review
thomask
parents: 535
diff changeset
31 assert(0);
7e8e5013a030 gdc-0.19 review
thomask
parents: 535
diff changeset
32 }
7e8e5013a030 gdc-0.19 review
thomask
parents: 535
diff changeset
33 if(ta.toString() != "byte[]"){
7e8e5013a030 gdc-0.19 review
thomask
parents: 535
diff changeset
34 assert(0);
7e8e5013a030 gdc-0.19 review
thomask
parents: 535
diff changeset
35 }
535
0db095345640 TypeInfo_Array
thomask
parents: 342
diff changeset
36
129
97952bc2ca81 extended typeid tests
thomask
parents:
diff changeset
37 return 0;
97952bc2ca81 extended typeid tests
thomask
parents:
diff changeset
38 }