File indexing completed on 2024-06-23 04:00:31

0001 /**
0002  * SPDX-FileCopyrightText: 2020 Christoph Cullmann <cullmann@kde.org>
0003  * SPDX-License-Identifier: MIT
0004  */
0005 
0006 // BEGIN
0007 #include <string>
0008 #include <QString>
0009 // END
0010 
0011 /**
0012  * TODO: improve documentation
0013  * @param magicArgument some magic argument
0014  * @return magic return value
0015  */
0016 int main(uint64_t magicArgument)
0017 {
0018     if (magicArgument > 1) {
0019         const std::string string = "source file: \"" __FILE__ "\"";
0020         const QString qString(QStringLiteral("test"));
0021         return qrand();
0022     }
0023 
0024     /* BUG: bogus integer constant inside next line */
0025     const double g = 1.1e12 * 0b01'01'01'01 - 43a + 0x11234 * 0234ULL - 'c' * 42;
0026     return g > 1.3f;
0027 }