mirror of
https://github.com/cc65/cc65.git
synced 2024-12-23 19:29:37 +00:00
deb5e97732
An enumerator that would be incremented greater than ULONG_MAX now causes an error.
10 lines
160 B
C
10 lines
160 B
C
/* bug #1890 - Overflow in enumerator value is not detected */
|
|
|
|
#include <limits.h>
|
|
enum { a = ULONG_MAX, b } c = b;
|
|
|
|
int main(void)
|
|
{
|
|
return 0;
|
|
}
|