aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.jason/rfg10.C
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.jason/rfg10.C')
-rw-r--r--gcc/testsuite/g++.old-deja/g++.jason/rfg10.C9
1 files changed, 9 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.jason/rfg10.C b/gcc/testsuite/g++.old-deja/g++.jason/rfg10.C
new file mode 100644
index 00000000000..8e7d2d1349d
--- /dev/null
+++ b/gcc/testsuite/g++.old-deja/g++.jason/rfg10.C
@@ -0,0 +1,9 @@
+// Bug: g++ doesn't notice the overflow in the enum values.
+
+#include <limits.h>
+
+enum COLOR
+{
+ red,
+ green = ULONG_MAX, blue
+}; // ERROR - enum overflow