xref: /illumos-gate/usr/src/tools/smatch/src/validation/constant-suffix-64.c (revision 95c745183e701047fab8e4753d4e8bc1dd1323e7)
1 #define BIGU 0xfffff00000000000U
2 #define BIGUL 0xfffff00000000000UL
3 
4 static unsigned long a = BIGU;
5 static unsigned long b = BIGUL;
6 
7 /*
8  * check-name: constant-suffix
9  * check-command: sparse -m64 -Wconstant-suffix $file
10  *
11  * check-error-start
12 constant-suffix-64.c:4:26: warning: constant 0xfffff00000000000U is so big it is unsigned long
13  * check-error-end
14  */
15 
16