blob: ff0fd2a1967586c4d447783269ec57c46ceb1ad8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
// 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 <QtCore/QCoreApplication>
#include <QTest>
class MaxWarnings: public QObject
{
Q_OBJECT
private slots:
void warn();
};
void MaxWarnings::warn()
{
for (int i = 0; i < 10000; ++i)
qWarning("%d", i);
}
QTEST_MAIN(MaxWarnings)
#include "maxwarnings.moc"
|