mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
15 lines
411 B
Solidity
15 lines
411 B
Solidity
pragma abicoder v2;
|
|
|
|
contract C
|
|
{
|
|
function f() public pure returns (uint, bytes1, bytes1) {
|
|
bytes memory encoded = abi.encodePacked("\\\\");
|
|
return (encoded.length, encoded[0], encoded[1]);
|
|
}
|
|
}
|
|
// ====
|
|
// compileViaYul: also
|
|
// compileToEwasm: also
|
|
// ----
|
|
// f() -> 2, 0x5c00000000000000000000000000000000000000000000000000000000000000, 0x5c00000000000000000000000000000000000000000000000000000000000000
|