Mercurial > projects > dstress
annotate run/enum_03.d @ 1599:d37b19f7e8bb
Move run/c/case_01 to nocompile.
author | Christian Kamm <kamm incasoftware de> |
---|---|
date | Tue, 09 Sep 2008 17:28:31 +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 } |