Mercurial > projects > dstress
annotate run/enum_04.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_04; | |
0 | 6 |
7 enum : byte { | |
8 BYTE | |
9 }; | |
10 | |
11 enum : short { | |
12 SHORT | |
13 } | |
14 | |
15 enum : int { | |
16 INT | |
17 } | |
18 | |
19 enum : long { | |
20 LONG | |
21 } | |
22 | |
23 int main(){ | |
24 assert(BYTE.sizeof == byte.sizeof); | |
25 assert(SHORT.sizeof == short.sizeof); | |
26 assert(INT.sizeof == int.sizeof); | |
27 assert(LONG.sizeof == long.sizeof); | |
28 return 0; | |
29 } |