ability to cast explicitly from int to enum

This commit also fixes a bug where pure functions are marked with
the read-only attribute in debug mode. This resulted in incorrect
codegen because calls to read-only functions with unused values
were not generated.

For example, a call to assert() would not be generated if assert
is marked with read-only. Which it *is* marked with in release
mode.
49a4b1b930Andrew Kelley committed on 7/9/2016, 10:22:04 PMparenta5251a1
5 files changedLine totals unavailable