mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
faa0caae08
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
10 lines
171 B
Solidity
10 lines
171 B
Solidity
contract test {
|
|
|
|
function f() public pure returns (uint256) {
|
|
uint256 a = 0x1234aAbcC;
|
|
uint256 b = 0x1234ABCDEF;
|
|
return a + b;
|
|
}
|
|
}
|
|
// ----
|