blob: 5d47b058a7ca9b2a76089cff3f82a3c42108783a (
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
#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"
|