Print this page
11972 resync smatch
   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 
   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  * check-assert: sizeof(long) == 8
  11  *
  12  * check-error-start
  13 constant-suffix-64.c:4:26: warning: constant 0xfffff00000000000U is so big it is unsigned long
  14  * check-error-end
  15  */
  16