Mercurial > projects > dstress
annotate run/enum_11.d @ 202:4cd33115f015
1) fixed @author@ typos
2) added reporter.txt
author | thomask |
---|---|
date | Wed, 15 Dec 2004 17:37:40 +0000 |
parents | 4738f3ef80ad |
children | 52c9e86b6486 |
rev | line source |
---|---|
194 | 1 // $HeadURL$ |
2 // $Date$ | |
3 // $Author$ | |
4 | |
202 | 5 // @author@ John Reimer <brk_6502@NO_SPA_M.yahoo.com> |
194 | 6 // @date@ 2004-12-11 |
7 // @uri@ news:cpfvm8$krm$1@digitaldaemon.com | |
8 // @url@ nntp://news.digitalmars.com/digitalmars.D.bugs/2534 | |
9 | |
10 module dstress.run.enum_11; | |
11 | |
12 enum Enum{ | |
13 A, | |
14 B, | |
15 C | |
16 } | |
17 | |
18 struct Struct{ | |
19 Enum e; | |
20 } | |
21 | |
22 int main(){ | |
23 Struct s; | |
24 assert(s.e == Enum.A); | |
25 assert(s.e == 0); | |
26 return 0; | |
27 } | |
28 |