Remove compiler test

Outdated test for old buggy compilers

Change-Id: I605a2318a21121bde9a80c046a7beb6edcd2d546
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
This commit is contained in:
Allan Sandfeld Jensen 2020-10-02 10:40:54 +02:00
parent 93dad2bf91
commit c3cd760303
12 changed files with 1 additions and 1763 deletions

View File

@ -1,7 +1,6 @@
# Generated from other.pro.
if(NOT CMAKE_CROSSCOMPILING)
add_subdirectory(compiler)
# add_subdirectory(atwrapper) <- does not exist # special case
endif()
if(TARGET Qt::Widgets)

View File

@ -1 +0,0 @@
tst_compile

View File

@ -1,16 +0,0 @@
# Generated from compiler.pro.
#####################################################################
## tst_compiler Test:
#####################################################################
qt_internal_add_test(tst_compiler
SOURCES
baseclass.cpp baseclass.h
derivedclass.cpp derivedclass.h
othersource.cpp
tst_compiler.cpp
)
## Scopes:
#####################################################################

View File

@ -1,17 +0,0 @@
# Generated from compiler.pro.
#####################################################################
## tst_compiler Test:
#####################################################################
qt_internal_add_test(tst_compiler
EXCEPTIONS # special case
SOURCES
baseclass.cpp baseclass.h
derivedclass.cpp derivedclass.h
othersource.cpp
tst_compiler.cpp
)
## Scopes:
#####################################################################

View File

@ -1,38 +0,0 @@
/****************************************************************************
**
** Copyright (C) 2016 The Qt Company Ltd.
** Contact: https://www.qt.io/licensing/
**
** This file is part of the test suite of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:GPL-EXCEPT$
** Commercial License Usage
** Licensees holding valid commercial Qt licenses may use this file in
** accordance with the commercial license agreement provided with the
** Software or, alternatively, in accordance with the terms contained in
** a written agreement between you and The Qt Company. For licensing terms
** and conditions see https://www.qt.io/terms-conditions. For further
** information use the contact form at https://www.qt.io/contact-us.
**
** GNU General Public License Usage
** Alternatively, this file may be used under the terms of the GNU
** General Public License version 3 as published by the Free Software
** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT
** included in the packaging of this file. Please review the following
** information to ensure the GNU General Public License requirements will
** be met: https://www.gnu.org/licenses/gpl-3.0.html.
**
** $QT_END_LICENSE$
**
****************************************************************************/
#define BASECLASS_NOT_ABSTRACT
#include "baseclass.h"
BaseClass::~BaseClass()
{
}
void BaseClass::wasAPureVirtualFunction()
{
qDebug("BaseClass::wasAPureVirtualFunction()");
}

View File

@ -1,47 +0,0 @@
/****************************************************************************
**
** Copyright (C) 2016 The Qt Company Ltd.
** Contact: https://www.qt.io/licensing/
**
** This file is part of the test suite of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:GPL-EXCEPT$
** Commercial License Usage
** Licensees holding valid commercial Qt licenses may use this file in
** accordance with the commercial license agreement provided with the
** Software or, alternatively, in accordance with the terms contained in
** a written agreement between you and The Qt Company. For licensing terms
** and conditions see https://www.qt.io/terms-conditions. For further
** information use the contact form at https://www.qt.io/contact-us.
**
** GNU General Public License Usage
** Alternatively, this file may be used under the terms of the GNU
** General Public License version 3 as published by the Free Software
** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT
** included in the packaging of this file. Please review the following
** information to ensure the GNU General Public License requirements will
** be met: https://www.gnu.org/licenses/gpl-3.0.html.
**
** $QT_END_LICENSE$
**
****************************************************************************/
#ifndef BASECLASS_H
#define BASECLASS_H
#include <QtGlobal>
QT_USE_NAMESPACE
class BaseClass
{
public:
virtual ~BaseClass();
#ifdef BASECLASS_NOT_ABSTRACT
virtual void wasAPureVirtualFunction();
#else
virtual void wasAPureVirtualFunction() = 0;
#endif
};
#endif

View File

@ -1,9 +0,0 @@
CONFIG += testcase
TARGET = tst_compiler
SOURCES += tst_compiler.cpp baseclass.cpp derivedclass.cpp othersource.cpp
HEADERS += baseclass.h derivedclass.h
QT = core testlib
qtConfig(c++11): CONFIG += c++11
qtConfig(c++14): CONFIG += c++14

View File

@ -1,35 +0,0 @@
/****************************************************************************
**
** Copyright (C) 2016 The Qt Company Ltd.
** Contact: https://www.qt.io/licensing/
**
** This file is part of the test suite of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:GPL-EXCEPT$
** Commercial License Usage
** Licensees holding valid commercial Qt licenses may use this file in
** accordance with the commercial license agreement provided with the
** Software or, alternatively, in accordance with the terms contained in
** a written agreement between you and The Qt Company. For licensing terms
** and conditions see https://www.qt.io/terms-conditions. For further
** information use the contact form at https://www.qt.io/contact-us.
**
** GNU General Public License Usage
** Alternatively, this file may be used under the terms of the GNU
** General Public License version 3 as published by the Free Software
** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT
** included in the packaging of this file. Please review the following
** information to ensure the GNU General Public License requirements will
** be met: https://www.gnu.org/licenses/gpl-3.0.html.
**
** $QT_END_LICENSE$
**
****************************************************************************/
#include "derivedclass.h"
#include <QtGlobal>
void DerivedClass::wasAPureVirtualFunction()
{
qDebug("DerivedClass::wasAPureVirtualFunction()");
}

View File

@ -1,39 +0,0 @@
/****************************************************************************
**
** Copyright (C) 2016 The Qt Company Ltd.
** Contact: https://www.qt.io/licensing/
**
** This file is part of the test suite of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:GPL-EXCEPT$
** Commercial License Usage
** Licensees holding valid commercial Qt licenses may use this file in
** accordance with the commercial license agreement provided with the
** Software or, alternatively, in accordance with the terms contained in
** a written agreement between you and The Qt Company. For licensing terms
** and conditions see https://www.qt.io/terms-conditions. For further
** information use the contact form at https://www.qt.io/contact-us.
**
** GNU General Public License Usage
** Alternatively, this file may be used under the terms of the GNU
** General Public License version 3 as published by the Free Software
** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT
** included in the packaging of this file. Please review the following
** information to ensure the GNU General Public License requirements will
** be met: https://www.gnu.org/licenses/gpl-3.0.html.
**
** $QT_END_LICENSE$
**
****************************************************************************/
#ifndef DERIVEDCLASS_H
#define DERIVEDCLASS_H
#include "baseclass.h"
class DerivedClass : public BaseClass
{
public:
void wasAPureVirtualFunction() override;
};
#endif

View File

@ -1,38 +0,0 @@
/****************************************************************************
**
** Copyright (C) 2016 Intel Corporation.
** Contact: https://www.qt.io/licensing/
**
** This file is part of the QtCore module of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:GPL-EXCEPT$
** Commercial License Usage
** Licensees holding valid commercial Qt licenses may use this file in
** accordance with the commercial license agreement provided with the
** Software or, alternatively, in accordance with the terms contained in
** a written agreement between you and The Qt Company. For licensing terms
** and conditions see https://www.qt.io/terms-conditions. For further
** information use the contact form at https://www.qt.io/contact-us.
**
** GNU General Public License Usage
** Alternatively, this file may be used under the terms of the GNU
** General Public License version 3 as published by the Free Software
** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT
** included in the packaging of this file. Please review the following
** information to ensure the GNU General Public License requirements will
** be met: https://www.gnu.org/licenses/gpl-3.0.html.
**
** $QT_END_LICENSE$
**
****************************************************************************/
#include <qglobal.h>
#ifdef Q_COMPILER_EXTERN_TEMPLATES
template <typename T> T externTemplate();
template<> int externTemplate<int>()
{
return 42;
}
#endif

File diff suppressed because it is too large Load Diff

View File

@ -2,7 +2,6 @@ TEMPLATE=subdirs
QT_FOR_CONFIG += gui-private
SUBDIRS=\
compiler \
gestures \
lancelot \
languagechange \
@ -46,8 +45,7 @@ SUBDIRS=\
qnetworkaccessmanager_and_qprogressdialog \
cross_compile: SUBDIRS -= \
atwrapper \
compiler
atwrapper
!qtHaveModule(gui)|!qtConfig(accessibility): SUBDIRS -= qaccessibility