solidity/test/libsolidity/syntaxTests/string/string_terminated_by_backslash.sol
herrBez faa0caae08 Add syntax tests to augment the test coverage of
libsolidity/parsing/Scanner.cpp and libsolidity/parsing/Scanner.h
Fix #4627 and PR #5003.

- Add multiline comment test
- Add upper case hex literal test
- Add test for unicode escapes
- Add test for strings with escaped newlines
- Add test for string escapes
- Add test for strings that do not terminate before end of file
- Add test for unterminated blocks
2018-09-20 23:02:44 +02:00

8 lines
214 B
Solidity

contract test {
function f() public pure returns (bytes32) {
bytes32 escapeCharacters = "text \";
return escapeCharacters;
}
}
// ----
// ParserError: (100-109): Expected primary expression.