diff options
author | Michael Forney <mforney@mforney.org> | 2020-06-03 02:39:09 -0700 |
---|---|---|
committer | Michael Forney <mforney@mforney.org> | 2020-06-03 02:39:09 -0700 |
commit | 6229709b8ae21d7722fef48ad8a9f2f10b900030 (patch) | |
tree | 16df9a6d31167cb85db8ec257dea2ded9693dc95 /test/basic.qbe | |
parent | 0b153ef15c12a5a27f9a65000a3d7036b1829366 (diff) |
decl: Allow out-of-range enum constants when they don't change type
gcc and clang allow enum constants out of range of int, but this
means that the type of enumerator may differ inside and outside the
enum specifier.
Instead, only allow out-of-range enum constants when their types
are compatible with the final enum type.
Diffstat (limited to 'test/basic.qbe')
0 files changed, 0 insertions, 0 deletions