Ticket #738: test.cpp

File test.cpp, 498 bytes (added by Steven Watanabe, 13 years ago)

Reduced test case

Line 
1#include <crtdbg.h>
2#include <boost/signals/signal0.hpp>
3
4void noop() {}
5
6int main()
7{
8 _CrtSetDbgFlag(_CRTDBG_ALLOC_MEM_DF | _CRTDBG_LEAK_CHECK_DF);
9 _CrtSetReportMode(_CRT_WARN, _CRTDBG_MODE_FILE);
10 _CrtSetReportFile(_CRT_WARN, _CRTDBG_FILE_STDERR);
11
12 {
13 boost::signal0<void> test1;
14 boost::signal0<void> test2;
15
16 boost::signal0<void>::slot_type slot(&noop);
17
18 test1.connect(slot);
19 test2.connect(slot);
20 }
21}