summaryrefslogtreecommitdiffstats
path: root/tests/auto/cmake/test_read_qt_namespace/main.cpp
blob: c58f554116a695ffd19f27dc7a2c0049caf5b0b4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// Copyright (C) 2025 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only

#include <string_view>
#include <QtCore/QtCore>

#ifdef QT_NO_NAMESPACE
#  ifdef QT_NAMESPACE
static_assert(false);
#  endif // QT_NAMESPACE
#else
static_assert(std::string_view(QT_STRINGIFY(QT_NAMESPACE))
           == std::string_view(QT_STRINGIFY(QT_NAMESPACE_FROM_PROPERTY)));
#endif

int main()
{}