constant-suffix-32.c 382 B

12345678910111213141516
  1. #define BIGU 0xfffff00000000000U
  2. #define BIGULL 0xfffff00000000000ULL
  3. static unsigned long long a = BIGU;
  4. static unsigned long long b = BIGULL;
  5. /*
  6. * check-name: constant-suffix
  7. * check-command: sparse -m32 -Wconstant-suffix $file
  8. *
  9. * check-error-start
  10. constant-suffix-32.c:4:31: warning: constant 0xfffff00000000000U is so big it is unsigned long long
  11. * check-error-end
  12. */