Mercurial > projects > ldc
view tests/mini/with3.d @ 981:855889b7b268
Update some testcases now that 64-bit immediates are working.
author | Frits van Bommel <fvbommel wxs.nl> |
---|---|
date | Wed, 18 Feb 2009 23:18:34 +0100 |
parents | 0cc0c6b53372 |
children |
line wrap: on
line source
enum fields { FIELD1, FIELD2 } fields find_field(fields f) { with(fields) { switch(f) { case FIELD1: return FIELD1; default: return FIELD2; } } } void main() { assert(find_field(fields.FIELD1) == fields.FIELD1); assert(find_field(fields.FIELD2) == fields.FIELD2); }