blob: 98e2ed1f9efabcbe785f3965a8b1b2a8fa45656f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
// Copyright (C) 2017 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0+ OR GPL-3.0 WITH Qt-GPL-exception-1.0
#include <qtsystemexceptionhandler.h>
#include <QCoreApplication>
#include <QTimer>
int main(int argc, char *argv[])
{
QCoreApplication a(argc, argv);
a.setApplicationName("testapp");
a.setApplicationVersion("1.0.0");
QtSystemExceptionHandler exceptionHandler;
QTimer::singleShot(100, [] { QtSystemExceptionHandler::crash(); });
return a.exec();
}
|