// Copyright (C) 2016 The Qt Company Ltd. // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only #include // SCENARIO 1 // this is the "no harm done" version. Only operator% is active, // with NO_CAST * defined #undef QT_USE_QSTRINGBUILDER #define QT_NO_CAST_FROM_ASCII #define QT_NO_CAST_TO_ASCII #include #include #include #include #define LITERAL "some literal" namespace { #define P % #include "stringbuilder.cpp" #undef P } // namespace class tst_QStringBuilder1 : public QObject { Q_OBJECT private slots: void scenario() { runScenario(); } }; #include "tst_qstringbuilder1.moc" QTEST_APPLESS_MAIN(tst_QStringBuilder1)