summaryrefslogtreecommitdiffstats
path: root/test/Sema/enum.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/Sema/enum.c')
-rw-r--r--test/Sema/enum.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/Sema/enum.c b/test/Sema/enum.c
index 916de41..9b46500 100644
--- a/test/Sema/enum.c
+++ b/test/Sema/enum.c
@@ -92,3 +92,7 @@ typedef enum {
} an_enum;
// FIXME: why is this only a warning?
char * s = (an_enum) an_enumerator; // expected-warning {{incompatible integer to pointer conversion initializing 'an_enum', expected 'char *'}}
+
+// PR4515
+enum PR4515 {PR4515a=1u,PR4515b=(PR4515a-2)/2};
+int CheckPR4515[PR4515b==0?1:-1];
OpenPOWER on IntegriCloud