slot_compile_test.cpp 565 B

123456789101112131415161718192021222324252627
  1. // Signals2 library
  2. // test for compilation of boost/signals2/slot.hpp
  3. // Copyright Frank Mori Hess 2008
  4. // Use, modification and
  5. // distribution is subject to the Boost Software License, Version
  6. // 1.0. (See accompanying file LICENSE_1_0.txt or copy at
  7. // http://www.boost.org/LICENSE_1_0.txt)
  8. // For more information, see http://www.boost.org
  9. #include <boost/test/minimal.hpp>
  10. #include <boost/signals2/slot.hpp>
  11. void myslot()
  12. {}
  13. int myslot2(int)
  14. {
  15. return 0;
  16. }
  17. int test_main(int, char*[])
  18. {
  19. boost::signals2::slot<void (void)> sl0(&myslot);
  20. return 0;
  21. }