2020-12-14 17:34:40 +00:00
|
|
|
pragma abicoder v2;
|
2020-05-07 17:19:54 +00:00
|
|
|
|
|
|
|
contract C
|
|
|
|
{
|
2020-12-14 17:34:40 +00:00
|
|
|
function f() public pure returns (uint, bytes1, bytes1) {
|
2020-05-07 17:19:54 +00:00
|
|
|
bytes memory encoded = abi.encodePacked("\\\\");
|
|
|
|
return (encoded.length, encoded[0], encoded[1]);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
// ====
|
|
|
|
// compileViaYul: also
|
2020-11-21 13:54:16 +00:00
|
|
|
// compileToEwasm: also
|
2020-05-07 17:19:54 +00:00
|
|
|
// ----
|
|
|
|
// f() -> 2, 0x5c00000000000000000000000000000000000000000000000000000000000000, 0x5c00000000000000000000000000000000000000000000000000000000000000
|