summaryrefslogtreecommitdiffstats
path: root/Tests/QtAutomoc/abc.cpp
diff options
context:
space:
mode:
authorAlex Neundorf <neundorf@kde.org>2011-11-22 18:24:39 (GMT)
committerAlex Neundorf <neundorf@kde.org>2011-11-22 19:52:21 (GMT)
commitbc7560e6e56d1f6fa65745cf5c1206192fb77b04 (patch)
tree920a0ebdf3e5eff3c2e245ea084b0ab090bc2ebb /Tests/QtAutomoc/abc.cpp
parent30fd8e603a52b7230e0b716d8120fc01551c8a4f (diff)
downloadCMake-bc7560e6e56d1f6fa65745cf5c1206192fb77b04.zip
CMake-bc7560e6e56d1f6fa65745cf5c1206192fb77b04.tar.gz
CMake-bc7560e6e56d1f6fa65745cf5c1206192fb77b04.tar.bz2
automoc: add test for including a moc_abc_p.cpp file
Alex
Diffstat (limited to 'Tests/QtAutomoc/abc.cpp')
-rw-r--r--Tests/QtAutomoc/abc.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/Tests/QtAutomoc/abc.cpp b/Tests/QtAutomoc/abc.cpp
index 25071cd..4bbc769 100644
--- a/Tests/QtAutomoc/abc.cpp
+++ b/Tests/QtAutomoc/abc.cpp
@@ -13,6 +13,7 @@
#include "abc.h"
+#include "abc_p.h"
#include <stdio.h>
@@ -35,11 +36,14 @@ void Abc::doAbc()
{
PrintAbc pa;
pa.print();
+ AbcP abcP;
+ abcP.doAbcP();
}
// check that including the moc file for the cpp file and the header works:
#include "abc.moc"
#include "moc_abc.cpp"
+#include "moc_abc_p.cpp"
// check that including a moc file from another header works:
#include "moc_xyz.cpp"