Test connecting to virtual function pointer
authorOlivier Goffart <ogoffart@woboq.com>
Thu, 12 Jan 2012 20:53:56 +0000 (21:53 +0100)
committerQt by Nokia <qt-info@nokia.com>
Tue, 24 Jan 2012 00:13:01 +0000 (01:13 +0100)
commitc0323cfbaf198afe15f8eec60d5e0323be91f0d5
tree31be4c31056408a064da96c19496a85d1f10264a
parentd584292aa2e17dbb7cdfee24b442cd9cb66e5aac
Test connecting to virtual function pointer

The C++ standard says that the comparison between pointer to virtual
function is unspecified (C++11 $5.10.2)
But we still may rely on it for the Qt::UniqueConnection and the
disconnection

So test if it works while using the same function.
Using function from different classes works for me, but we should
probably not assume it works. I left it commented in the test for
reference.

Change-Id: I1d9b91d4cc1a424d4f43ef2ee4981b8573f1e86f
Reviewed-by: Bradley T. Hughes <bradley.hughes@nokia.com>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
tests/auto/corelib/kernel/qobject/tst_qobject.cpp