| 1544 | } |
| 1545 | |
| 1546 | void handle_error() { |
| 1547 | { |
| 1548 | const char filedata[] = "#define A \n" |
| 1549 | "#define B don't want to \\\n" |
| 1550 | "more text\n" |
| 1551 | "void f()\n" |
| 1552 | "{\n" |
| 1553 | " char a = 'a'; // '\n" |
| 1554 | "}\n"; |
| 1555 | |
| 1556 | // Preprocess => actual result.. |
| 1557 | const std::map<std::string, std::string> actual = getcode(settings0, *this, filedata); |
| 1558 | |
| 1559 | ASSERT_EQUALS(0, actual.size()); |
| 1560 | ASSERT_EQUALS("[file.c:2:14]: (error) No pair for character ('). Can't process file. File is either invalid or unicode, which is currently not supported. [syntaxError]\n", errout_str()); |
| 1561 | } |
| 1562 | } |
| 1563 | |
| 1564 | void missing_doublequote() { |
| 1565 | { |