summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.benjamin/p12475.C
blob: d3e121e144087e88bc3f4fbbbd6e7e1c90842587 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// { dg-do assemble  }
// prms-id: 12475

#include <limits.h>

#if LONG_MAX == 2147483647
#define TEST 2147483648
#elif LONG_MAX == 9223372036854775807
#define TEST 9223372036854775808
#else
#error "Unsupported test -- add new constants."
#endif

enum huh { start =-TEST, next };	// { dg-warning "" }