printf_a.c 274 B

12345678910111213141516171819202122232425
  1. #include "printf_fp.c"
  2. int main()
  3. {
  4. const double v[] = {
  5. -NAN,
  6. -INFINITY,
  7. -0x1.1p40,
  8. -2.75,
  9. -1,
  10. -9 / 1024.,
  11. 0,
  12. 9 / 1024.,
  13. 1,
  14. 0x1.23456789abcdep0,
  15. 0x1.f8p0,
  16. 2.75,
  17. 0x1.1p40,
  18. INFINITY,
  19. NAN,
  20. };
  21. test_float("aA", v, ARRAY_SIZE(v));
  22. return 0;
  23. }