aboutsummaryrefslogtreecommitdiffstats
path: root/tests/incorrect-emit
diff options
context:
space:
mode:
authorSergio Martins <smartins@kde.org>2016-12-28 13:22:48 +0000
committerSergio Martins <smartins@kde.org>2016-12-28 13:22:48 +0000
commit968595ee454e1b7c51635d0b1ced3902c8ab3984 (patch)
tree2908f1c8bbe600235b3116a02dce75d32cc39697 /tests/incorrect-emit
parente496d3fc61cd9b11742393e9585a30e1240f407d (diff)
incorrect-emit: Add unit-test for a bug that should be fixed
CCBUG: 373947
Diffstat (limited to 'tests/incorrect-emit')
-rw-r--r--tests/incorrect-emit/main.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/incorrect-emit/main.cpp b/tests/incorrect-emit/main.cpp
index e266e624..6648066a 100644
--- a/tests/incorrect-emit/main.cpp
+++ b/tests/incorrect-emit/main.cpp
@@ -78,3 +78,17 @@ struct NotQObject
emit o->destroyed(); // OK
}
};
+
+class TestBug373947 : public QObject
+{
+ int method()
+ {
+ return otherMethod(); // OK
+ }
+
+Q_SIGNALS:
+ void someSignal();
+
+public:
+ int otherMethod();
+};