diff options
Diffstat (limited to 'tests/test_signal.cc')
-rw-r--r-- | tests/test_signal.cc | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/test_signal.cc b/tests/test_signal.cc index 7172b29..3cd51a5 100644 --- a/tests/test_signal.cc +++ b/tests/test_signal.cc @@ -110,6 +110,16 @@ void test_make_slot() util->check_result(result_stream, "foo(int 3) bar(float 3) foo(int 3) "); } +void test_std_function_style_syntax() +{ + sigc::signal<int(int)> sig; + sig.connect(sigc::ptr_fun(&foo)); + + sig(1); + util->check_result(result_stream, "foo(int 1) "); +} + + } // end anonymous namespace int main(int argc, char* argv[]) @@ -124,6 +134,7 @@ int main(int argc, char* argv[]) test_auto_disconnection(); test_reference(); test_make_slot(); + test_std_function_style_syntax(); return util->get_result_and_delete_instance() ? EXIT_SUCCESS : EXIT_FAILURE; } |