| 1 |
/** |
| 2 |
* SPDX-FileCopyrightText: 2020 Christoph Cullmann <[email protected]> |
| 3 |
* SPDX-License-Identifier: MIT |
| 4 |
*/ |
| 5 |
|
| 6 |
// BEGIN |
| 7 |
#include <string> |
| 8 |
#include <QString> |
| 9 |
// END |
| 10 |
|
| 11 |
/** |
| 12 |
* TODO: improve documentation |
| 13 |
* @param magicArgument some magic argument |
| 14 |
* @return magic return value |
| 15 |
*/ |
| 16 |
int main(uint64_t magicArgument) |
| 17 |
{ |
| 18 |
if (magicArgument > 1) { |
| 19 |
const std::string string = "source file: \"" __FILE__ "\""; |
| 20 |
const QString qString(QStringLiteral("test")); |
| 21 |
return qrand(); |
| 22 |
} |
| 23 |
|
| 24 |
/* BUG: bogus integer constant inside next line */ |
| 25 |
const double g = 1.1e12 * 0b01'01'01'01 - 43a + 0x11234 * 0234ULL - 'c' * 42; |
| 26 |
return g > 1.3f; |
| 27 |
} |