init_once_abi.cpp 1009 B

1234567891011121314151617181920212223242526272829303132
  1. /*
  2. * Copyright Andrey Semashev 2018.
  3. * Distributed under the Boost Software License, Version 1.0.
  4. * (See accompanying file LICENSE_1_0.txt or copy at
  5. * http://www.boost.org/LICENSE_1_0.txt)
  6. */
  7. /*!
  8. * \file init_once_abi.cpp
  9. * \author Andrey Semashev
  10. * \date 10.03.2018
  11. *
  12. * \brief This file contains ABI test for init_once.hpp
  13. */
  14. #include <boost/winapi/init_once.hpp>
  15. #include <windows.h>
  16. #include "abi_test_tools.hpp"
  17. int main()
  18. {
  19. #if BOOST_USE_WINAPI_VERSION >= BOOST_WINAPI_VERSION_WIN6
  20. BOOST_WINAPI_TEST_TYPE_SIZE(INIT_ONCE);
  21. BOOST_WINAPI_TEST_TYPE_SIZE(PINIT_ONCE_FN); // cannot be compared is_same because has INIT_ONCE in arguments
  22. BOOST_WINAPI_TEST_CONSTANT(INIT_ONCE_ASYNC);
  23. BOOST_WINAPI_TEST_CONSTANT(INIT_ONCE_CHECK_ONLY);
  24. BOOST_WINAPI_TEST_CONSTANT(INIT_ONCE_INIT_FAILED);
  25. BOOST_WINAPI_TEST_CONSTANT(INIT_ONCE_CTX_RESERVED_BITS);
  26. #endif // BOOST_USE_WINAPI_VERSION >= BOOST_WINAPI_VERSION_WIN6
  27. return boost::report_errors();
  28. }