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