Do not use \b, \v and \f escapes in string literals in generated Yul code

This commit is contained in:
Kamil Śliwak
2021-06-28 14:13:47 +02:00
parent a3c965b7de
commit 19fada966f
6 changed files with 25 additions and 11 deletions
@@ -0,0 +1,12 @@
contract C {
function f() public pure returns (bytes32 result) {
assembly {
result := hex"000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f"
}
}
}
// ====
// compileToEwasm: also
// compileViaYul: also
// ----
// f() -> 0x000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f