Mercurial > projects > dstress
annotate run/enum_03.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 | f87ba6507260 |
children |
rev | line source |
---|---|
374 | 1 // $HeadURL$ |
2 // $Date$ | |
3 // $Author$ | |
4 | |
5 module dstress.run.enum_03; | |
0 | 6 |
7 enum MyEnum : byte { | |
8 A, | |
9 B, | |
10 C | |
11 } | |
12 | |
13 int main(){ | |
14 MyEnum e; | |
15 assert(e==e.A); | |
16 assert(e==MyEnum.A); | |
17 assert(e.min==0); | |
18 assert(e.max==2); | |
19 assert(e.sizeof==byte.sizeof); | |
20 return 0; | |
21 } |