div.c 431 B

1234567891011121314151617181920212223
  1. #include <stdlib.h>
  2. #include "test_helpers.h"
  3. volatile float f;
  4. volatile long double ld;
  5. volatile unsigned long long ll;
  6. lldiv_t mydivt;
  7. int main(void) {
  8. char* tmp;
  9. f = strtof("gnu", &tmp);
  10. ld = strtold("gnu", &tmp);
  11. ll = strtoll("gnu", &tmp, 10);
  12. ll = strtoull("gnu", &tmp, 10);
  13. ll = llabs(10);
  14. mydivt = lldiv(10,1);
  15. ll = mydivt.quot;
  16. ll = mydivt.rem;
  17. ll = atoll("10");
  18. _Exit(0);
  19. }