Mercurial > projects > dstress
annotate run/typeid_82.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 | 32f7f8ce5e51 |
children |
rev | line source |
---|---|
136 | 1 /* $HeadURL$ |
2 * $Date$ | |
3 * $Author$ | |
4 */ | |
5 | |
6 module dstress.run.typeid_82; | |
7 | |
8 enum MyEnum{ | |
9 A, | |
10 B | |
11 } | |
12 | |
13 int main(){ | |
14 TypeInfo t1 = typeid(typeof(MyEnum.A)); | |
15 assert(!(t1 is null)); | |
16 TypeInfo t2 = typeid(MyEnum); | |
17 assert(!(t2 is null)); | |
570 | 18 assert(t1 is t2); |
136 | 19 return 0; |
20 } |