summaryrefslogtreecommitdiffstats
path: root/src/boost/libs/signals2/test/slot_compile_test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/boost/libs/signals2/test/slot_compile_test.cpp')
-rw-r--r--src/boost/libs/signals2/test/slot_compile_test.cpp27
1 files changed, 27 insertions, 0 deletions
diff --git a/src/boost/libs/signals2/test/slot_compile_test.cpp b/src/boost/libs/signals2/test/slot_compile_test.cpp
new file mode 100644
index 00000000..40f781fc
--- /dev/null
+++ b/src/boost/libs/signals2/test/slot_compile_test.cpp
@@ -0,0 +1,27 @@
+// 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/test/minimal.hpp>
+#include <boost/signals2/slot.hpp>
+
+void myslot()
+{}
+
+int myslot2(int)
+{
+ return 0;
+}
+
+int test_main(int, char*[])
+{
+ boost::signals2::slot<void (void)> sl0(&myslot);
+ return 0;
+}