integer_include_test.cpp 959 B

123456789101112131415161718192021222324252627282930313233343536
  1. // Copyright John Maddock 2009.
  2. // Distributed under the Boost
  3. // Software License, Version 1.0. (See accompanying file
  4. // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
  5. #include <boost/integer.hpp> // must be the only #include!
  6. int main()
  7. {
  8. boost::int_fast_t<char>::fast f = 0;
  9. (void)f;
  10. boost::int_t<16>::fast f2 = 0;
  11. (void)f2;
  12. boost::int_t<32>::exact e = 0;
  13. (void)e;
  14. boost::int_t<12>::least l = 0;
  15. (void)l;
  16. boost::uint_t<16>::fast uf2 = 0;
  17. (void)uf2;
  18. boost::uint_t<32>::exact ue = 0;
  19. (void)ue;
  20. boost::uint_t<12>::least ul = 0;
  21. (void)ul;
  22. boost::int_max_value_t<200>::fast v1 = 0;
  23. (void)v1;
  24. boost::int_max_value_t<2000>::least v2 = 0;
  25. (void)v2;
  26. boost::int_min_value_t<-200>::fast v3 = 0;
  27. (void)v3;
  28. boost::int_min_value_t<-2000>::least v4 = 0;
  29. (void)v4;
  30. boost::uint_value_t<200>::fast v5 = 0;
  31. (void)v5;
  32. boost::uint_value_t<2000>::least v6 = 0;
  33. (void)v6;
  34. }