Commit 76f82916 authored by Robert Loehning's avatar Robert Loehning Committed by hjk
Browse files

debugger: Add some code for testing ctor in plugin



Change-Id: I0c35549804befc8aed034e35c9cce24f57e41337
Reviewed-by: default avatarhjk <hjk121@nokiamail.com>
parent c5dad0f6
...@@ -30,9 +30,19 @@ ...@@ -30,9 +30,19 @@
#include <stdio.h> #include <stdio.h>
#include <qglobal.h> #include <qglobal.h>
class Something {
public:
Something() {
int i = 0;
++i;
return;
}
};
extern "C" Q_DECL_EXPORT int pluginTest() extern "C" Q_DECL_EXPORT int pluginTest()
{ {
static Something sst;
Something st;
int s = 0; int s = 0;
for (int i = 1; i != 2000; ++i) for (int i = 1; i != 2000; ++i)
s += i; s += i;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment