boost/libs/signals2/test/slot_compile_test.cpp
2021-10-05 21:37:46 +02:00

28 lines
612 B
C++

// Signals2 library
// test for compilation of boost/signals2/slot.hpp
// Copyright Frank Mori Hess 2008
// Use, modification and
// distribution is subject to the Boost Software License, Version
// 1.0. (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
// For more information, see http://www.boost.org
#include <boost/signals2/slot.hpp>
#define BOOST_TEST_MODULE slot_compile_test
#include <boost/test/included/unit_test.hpp>
void myslot()
{}
int myslot2(int)
{
return 0;
}
BOOST_AUTO_TEST_CASE(test_main)
{
boost::signals2::slot<void (void)> sl0(&myslot);
}