]> git.saurik.com Git - wxWidgets.git/blobdiff - tests/events/evthandler.cpp
added failing compilation test for the case of missing handler in Bind() call
[wxWidgets.git] / tests / events / evthandler.cpp
index 309b34442fda853a8e97ee7547f2d4ff34e94ad8..f51360a2020522e3c95175e5367f4aa1f55eb42d 100644 (file)
@@ -381,6 +381,11 @@ void EvtHandlerTestCase::InvalidBind()
     handler.Bind(MyEventType, f);
 #endif
 
+    // the handler can't be omitted when calling Bind()
+#ifdef TEST_INVALID_BIND_NO_HANDLER
+    handler.Bind(MyEventType, &MyHandler::OnMyEvent);
+#endif
+
     // calling a derived class method with a base class pointer must not work
 #ifdef TEST_INVALID_BIND_DERIVED
     struct C1 : wxEvtHandler { };