xref: /illumos-gate/usr/src/tools/smatch/src/validation/constant-suffix-64.c (revision 1b58875ad7966cf2c85ee8e92f3da04f0a3b2f7a)
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