diff options
author | Michael Forney <mforney@mforney.org> | 2019-04-20 20:24:52 -0700 |
---|---|---|
committer | Michael Forney <mforney@mforney.org> | 2019-04-20 20:55:04 -0700 |
commit | 82590e5121136414c78d17454d666084d7b19302 (patch) | |
tree | 1c8d52356e4bad75cdb118179ac92a6a51b8c77a /test/const-expr-cast.c | |
parent | 8c343ad7edd73c169d865c64e7868e3ec447ecda (diff) |
eval: Handle casts in constant expressions
Fixes #23.
Diffstat (limited to 'test/const-expr-cast.c')
-rw-r--r-- | test/const-expr-cast.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/const-expr-cast.c b/test/const-expr-cast.c new file mode 100644 index 0000000..10a3eac --- /dev/null +++ b/test/const-expr-cast.c @@ -0,0 +1,7 @@ +enum { + A = (unsigned char)0x321, + B = (short)-2147438112, + C = 0x80000003 * 2, +}; + +int a = A, b = B, c = C; |