aboutsummaryrefslogtreecommitdiffstats
path: root/tests/manual/debugger/simple/simple_test_plugin.cpp
blob: b4862208a05deb7e6898ee655635188adf45f68e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
// Copyright (C) 2016 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0

#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;
    fprintf(stderr, "in plugin test\n");
    return s;
}