summaryrefslogtreecommitdiff
path: root/tests/auto/api/testdata/moc-hpp-included/object2.mm
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/api/testdata/moc-hpp-included/object2.mm')
-rw-r--r--tests/auto/api/testdata/moc-hpp-included/object2.mm16
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/auto/api/testdata/moc-hpp-included/object2.mm b/tests/auto/api/testdata/moc-hpp-included/object2.mm
new file mode 100644
index 000000000..6fd95d31f
--- /dev/null
+++ b/tests/auto/api/testdata/moc-hpp-included/object2.mm
@@ -0,0 +1,16 @@
+#include "object2.h"
+
+Object2::Object2(QObject *parent)
+ : QObject(parent)
+{}
+
+#include "moc_object2.cpp"
+#include <cstdio>
+
+int main2()
+{
+ Object2 obj;
+ printf("Hello World\n");
+ return 0;
+}
+