summaryrefslogtreecommitdiff
path: root/tests/manual
diff options
context:
space:
mode:
authorRobert Loehning <robert.loehning@digia.com>2014-06-06 16:11:53 +0200
committerhjk <hjk121@nokiamail.com>2014-06-06 16:20:07 +0200
commit76f829164a5e2a2eb8371dc5dbdd8909b57b21ea (patch)
tree203d9833c3bec5ce5a3df8a1ba7834aeab26fa16 /tests/manual
parentc5dad0f638171774a6b3c89e14d50bf4ff5d3930 (diff)
downloadqt-creator-76f829164a5e2a2eb8371dc5dbdd8909b57b21ea.tar.gz
debugger: Add some code for testing ctor in plugin
Change-Id: I0c35549804befc8aed034e35c9cce24f57e41337 Reviewed-by: hjk <hjk121@nokiamail.com>
Diffstat (limited to 'tests/manual')
-rw-r--r--tests/manual/debugger/simple/simple_test_plugin.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/manual/debugger/simple/simple_test_plugin.cpp b/tests/manual/debugger/simple/simple_test_plugin.cpp
index 724110b03c..c80f8680fc 100644
--- a/tests/manual/debugger/simple/simple_test_plugin.cpp
+++ b/tests/manual/debugger/simple/simple_test_plugin.cpp
@@ -30,9 +30,19 @@
#include <stdio.h>
#include <qglobal.h>
+class Something {
+public:
+ Something() {
+ int i = 0;
+ ++i;
+ return;
+ }
+};
extern "C" Q_DECL_EXPORT int pluginTest()
{
+ static Something sst;
+ Something st;
int s = 0;
for (int i = 1; i != 2000; ++i)
s += i;