summaryrefslogtreecommitdiffstats
path: root/tests/auto/qsharedpointer/externaltests.pri
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@nokia.com>2009-06-25 19:01:24 (GMT)
committerThiago Macieira <thiago.macieira@nokia.com>2009-07-02 11:48:20 (GMT)
commit6f673e2cf55755a97aeb8971994ab9fc62fb794e (patch)
treef075a45e9fd6a18cfde96fd28069b719be743532 /tests/auto/qsharedpointer/externaltests.pri
parentfb51a10ee0451274a430227566ae26efb2ac4474 (diff)
downloadQt-6f673e2cf55755a97aeb8971994ab9fc62fb794e.zip
Qt-6f673e2cf55755a97aeb8971994ab9fc62fb794e.tar.gz
Qt-6f673e2cf55755a97aeb8971994ab9fc62fb794e.tar.bz2
Experimental: allow QSharedPointer to be used with forward declarations that are declared in this file.
The one-definition rule allows the forward declaration appearing below to apply to code that was earlier. Therefore, if the compiler finds out how to delete the object, we can allow a QSharedPointer of a forward- declared-type. This means the actual problem is just a warning with g++. To catch the error, we need a separate .cpp file and I'd rather run this as an external test.
Diffstat (limited to 'tests/auto/qsharedpointer/externaltests.pri')
-rw-r--r--tests/auto/qsharedpointer/externaltests.pri1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/auto/qsharedpointer/externaltests.pri b/tests/auto/qsharedpointer/externaltests.pri
index 717acac..1fdcf65 100644
--- a/tests/auto/qsharedpointer/externaltests.pri
+++ b/tests/auto/qsharedpointer/externaltests.pri
@@ -1,4 +1,5 @@
SOURCES += $$PWD/externaltests.cpp
+HEADERS += $$PWD/externaltests.h
cleanedQMAKESPEC = $$replace(QMAKESPEC, \\\\, /)
DEFINES += DEFAULT_MAKESPEC=\\\"$$cleanedQMAKESPEC\\\"