diff options
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.jason/rfg10.C')
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.jason/rfg10.C | 11 |
1 files changed, 11 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 000000000..f6d5af3a8 --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.jason/rfg10.C @@ -0,0 +1,11 @@ +// { dg-do assemble } +// Bug: g++ doesn't notice the overflow in the enum values. + +#include <limits.h> + +enum COLOR +{ + red, + green = ULONG_MAX, + blue // { dg-error "overflow in enumeration" } +}; |