From 8bae8a47d5a6674b401da6429a3475b284699871 Mon Sep 17 00:00:00 2001 From: Michael Forney Date: Sun, 11 Aug 2019 16:53:38 -0700 Subject: decl: Allow enumerator values up to UINT_MAX --- test/enum-large-value.c | 4 ++++ test/enum-large-value.qbe | 1 + 2 files changed, 5 insertions(+) create mode 100644 test/enum-large-value.c create mode 100644 test/enum-large-value.qbe (limited to 'test') 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; diff --git a/test/enum-large-value.qbe b/test/enum-large-value.qbe new file mode 100644 index 0000000..a67781d --- /dev/null +++ b/test/enum-large-value.qbe @@ -0,0 +1 @@ +export data $x = align 4 { w 0, } -- cgit v1.2.3