default_ctor_pass.cpp 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. //===----------------------------------------------------------------------===//
  2. //
  3. // The LLVM Compiler Infrastructure
  4. //
  5. // This file is dual licensed under the MIT and the University of Illinois Open
  6. // Source Licenses. See LICENSE.TXT for details.
  7. //
  8. //===----------------------------------------------------------------------===//
  9. // Copyright (C) 2011 Vicente J. Botet Escriba
  10. //
  11. // Distributed under the Boost Software License, Version 1.0. (See accompanying
  12. // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
  13. // <boost/thread/future.hpp>
  14. // class packaged_task<R>
  15. // packaged_task();
  16. #define BOOST_THREAD_VERSION 4
  17. #if BOOST_THREAD_VERSION == 4
  18. #define BOOST_THREAD_DETAIL_SIGNATURE int()
  19. #else
  20. #define BOOST_THREAD_DETAIL_SIGNATURE int
  21. #endif
  22. #include <boost/thread/future.hpp>
  23. #include <boost/detail/lightweight_test.hpp>
  24. #include <string>
  25. int main()
  26. {
  27. {
  28. boost::packaged_task<BOOST_THREAD_DETAIL_SIGNATURE> p;
  29. BOOST_TEST(!p.valid());
  30. }
  31. return boost::report_errors();
  32. }