URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.old-deja/] [g++.jason/] [rfg10.C] - Rev 816
Compare with Previous | Blame | View Log
// { 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" }
};