summaryrefslogtreecommitdiffstats
path: root/Tests/Qt4Targets/main_gen_test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Tests/Qt4Targets/main_gen_test.cpp')
-rw-r--r--Tests/Qt4Targets/main_gen_test.cpp21
1 files changed, 21 insertions, 0 deletions
diff --git a/Tests/Qt4Targets/main_gen_test.cpp b/Tests/Qt4Targets/main_gen_test.cpp
new file mode 100644
index 0000000..984424b
--- /dev/null
+++ b/Tests/Qt4Targets/main_gen_test.cpp
@@ -0,0 +1,21 @@
+
+#include <QObject>
+
+#include "myinterface.h"
+
+class MyObject : public QObject, MyInterface
+{
+ Q_OBJECT
+ Q_INTERFACES(MyInterface)
+public:
+ explicit MyObject(QObject *parent = 0) : QObject(parent) { }
+};
+
+int main(int argc, char **argv)
+{
+ MyObject mo;
+ mo.objectName();
+ return 0;
+}
+
+#include "main_gen_test.moc"