Mercurial > projects > dstress
annotate run/typeid_75.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 | ec6d35cccfb5 |
children |
rev | line source |
---|---|
133 | 1 /* $HeadURL$ |
2 * $Date$ | |
3 * $Author$ | |
4 */ | |
5 | |
6 module dstress.run.typeid_75; | |
7 | |
8 enum MyEnum{ | |
9 A, | |
10 B | |
11 } | |
12 | |
13 int main(){ | |
14 TypeInfo ti = typeid(MyEnum); | |
15 assert(!(ti is null)); | |
342 | 16 assert(ti.tsize==(MyEnum).sizeof); |
435 | 17 assert(ti.toString()=="dstress.run.typeid_75.MyEnum"); |
133 | 18 return 0; |
19 } |