aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/validation/constant-suffix-64.c
blob: 6722633185dad28f1c9d51ac6fdc6d44f1f29d49 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#define BIGU 0xfffff00000000000U
#define BIGUL 0xfffff00000000000UL

static unsigned long a = BIGU;
static unsigned long b = BIGUL;

/*
 * check-name: constant-suffix
 * check-command: sparse -m64 -Wconstant-suffix $file
 * check-assert: sizeof(long) == 8
 *
 * check-error-start
constant-suffix-64.c:4:26: warning: constant 0xfffff00000000000U is so big it is unsigned long
 * check-error-end
 */