annotate run/typeid_23.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 0db095345640
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_23;
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(ubyte[]);
97952bc2ca81 extended typeid tests
thomask
parents:
diff changeset
10 assert(!(ti is null));
535
0db095345640 TypeInfo_Array
thomask
parents: 435
diff changeset
11 assert(ti);
342
111c6744074d typeid(type).tsize == type.sizeof
thomask
parents: 334
diff changeset
12 assert(ti.tsize==(ubyte[]).sizeof);
435
ec6d35cccfb5 pre dmd-0.121 review
thomask
parents: 342
diff changeset
13 assert(ti.toString()=="ubyte[]");
535
0db095345640 TypeInfo_Array
thomask
parents: 435
diff changeset
14
0db095345640 TypeInfo_Array
thomask
parents: 435
diff changeset
15 TypeInfo_Array ta = cast(TypeInfo_Array) ti;
0db095345640 TypeInfo_Array
thomask
parents: 435
diff changeset
16 assert(!(ta is null));
0db095345640 TypeInfo_Array
thomask
parents: 435
diff changeset
17 assert(ta);
0db095345640 TypeInfo_Array
thomask
parents: 435
diff changeset
18 assert(ta.tsize==(ubyte[]).sizeof);
0db095345640 TypeInfo_Array
thomask
parents: 435
diff changeset
19 assert(ta.toString()=="ubyte[]");
0db095345640 TypeInfo_Array
thomask
parents: 435
diff changeset
20
129
97952bc2ca81 extended typeid tests
thomask
parents:
diff changeset
21 return 0;
97952bc2ca81 extended typeid tests
thomask
parents:
diff changeset
22 }