Mercurial > projects > dstress
view run/enum_11.d @ 1594:c970971fb408
Remove nocompile/a/arrayOp_01: since array ops are now supported,
it is no longer valid and needs to be replaced by a set of array op tests.
author | Christian Kamm <kamm incasoftware de> |
---|---|
date | Thu, 28 Aug 2008 17:33:00 +0200 |
parents | d3a3e0c251d8 |
children |
line wrap: on
line source
// $HeadURL$ // $Date$ // $Author$ // @author@ John Reimer <brk_6502@NO_SPA_M.yahoo.com> // @date@ 2004-12-11 // @uri@ news:cpfvm8$krm$1@digitaldaemon.com // @uri@ http://www.digitalmars.com/pnews/read.php?server=news.digitalmars.com&group=digitalmars.D.bugs&artnum=2534 module dstress.run.enum_11; enum Enum{ A, B, C } struct Struct{ Enum e; } int main(){ Struct s; assert(s.e == Enum.A); assert(s.e == 0); return 0; }