boost/libs/signals2/test/slot_compile_test.cpp

28 lines
612 B
C++
Raw Permalink Normal View History

2018-01-12 21:47:58 +01:00
// 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>
2021-10-05 21:37:46 +02:00
#define BOOST_TEST_MODULE slot_compile_test
#include <boost/test/included/unit_test.hpp>
2018-01-12 21:47:58 +01:00
void myslot()
{}
int myslot2(int)
{
return 0;
}
2021-10-05 21:37:46 +02:00
BOOST_AUTO_TEST_CASE(test_main)
2018-01-12 21:47:58 +01:00
{
boost::signals2::slot<void (void)> sl0(&myslot);
}