summaryrefslogtreecommitdiffstats
path: root/Tests/QtAutogen/mocInclude/ObjC.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Tests/QtAutogen/mocInclude/ObjC.cpp')
-rw-r--r--Tests/QtAutogen/mocInclude/ObjC.cpp26
1 files changed, 26 insertions, 0 deletions
diff --git a/Tests/QtAutogen/mocInclude/ObjC.cpp b/Tests/QtAutogen/mocInclude/ObjC.cpp
new file mode 100644
index 0000000..8ca34cb
--- /dev/null
+++ b/Tests/QtAutogen/mocInclude/ObjC.cpp
@@ -0,0 +1,26 @@
+#include "ObjC.hpp"
+
+class SubObjC : public QObject
+{
+ Q_OBJECT
+
+public:
+ SubObjC() {}
+ ~SubObjC() {}
+
+ Q_SLOT
+ void aSlot();
+};
+
+void SubObjC::aSlot()
+{
+}
+
+void ObjC::go()
+{
+ SubObjC subObj;
+}
+
+#include "ObjC.moc"
+// Not the own header
+#include "moc_ObjD.cpp"