yield_k_test.cpp 404 B

1234567891011121314151617181920212223
  1. //
  2. // yield_k_test.cpp
  3. //
  4. // Copyright 2008 Peter Dimov
  5. //
  6. // Distributed under the Boost Software License, Version 1.0.
  7. // See accompanying file LICENSE_1_0.txt or copy at
  8. // http://www.boost.org/LICENSE_1_0.txt)
  9. //
  10. #include <boost/smart_ptr/detail/yield_k.hpp>
  11. // Sanity check only
  12. int main()
  13. {
  14. for( unsigned k = 0; k < 256; ++k )
  15. {
  16. boost::detail::yield( k );
  17. }
  18. return 0;
  19. }