aboutsummaryrefslogtreecommitdiff
path: root/test/enum-large-value.c
diff options
context:
space:
mode:
authorMichael Forney <mforney@mforney.org>2019-08-11 16:53:38 -0700
committerMichael Forney <mforney@mforney.org>2019-08-11 16:53:38 -0700
commit8bae8a47d5a6674b401da6429a3475b284699871 (patch)
tree8b0cfe624f1aa693454b9de1fa21b58c41ec381c /test/enum-large-value.c
parentfb4efb47d1469d1b0212f04eba8f4e5ed328117f (diff)
decl: Allow enumerator values up to UINT_MAX
Diffstat (limited to 'test/enum-large-value.c')
-rw-r--r--test/enum-large-value.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/enum-large-value.c b/test/enum-large-value.c
new file mode 100644
index 0000000..3532062
--- /dev/null
+++ b/test/enum-large-value.c
@@ -0,0 +1,4 @@
+enum {
+ A = 0x80000000,
+};
+int x = A < 0;