2019-11-21 17:56:25 +00:00
|
|
|
contract C {
|
|
|
|
function f1() external pure returns (string memory) { return "abcabc"; }
|
|
|
|
function f2() external pure returns (string memory) { return "abcabc`~12345677890- _=+!@#$%^&*()[{]}|;:',<.>?"; }
|
|
|
|
function g() external pure returns (bytes32) { return "abcabc"; }
|
|
|
|
function h() external pure returns (bytes4) { return 0xcafecafe; }
|
|
|
|
}
|
|
|
|
// ====
|
2020-11-24 23:25:42 +00:00
|
|
|
// compileViaYul: also
|
2020-11-21 13:54:16 +00:00
|
|
|
// compileToEwasm: also
|
2019-11-21 17:56:25 +00:00
|
|
|
// ----
|
|
|
|
// f1() -> 0x20, 6, left(0x616263616263)
|
|
|
|
// f2() -> 32, 47, 44048183223289766195424279195050628400112610419087780792899004030957505095210, 18165586057823232067963737336409268114628061002662705707816940456850361417728
|
|
|
|
// g() -> left(0x616263616263)
|
|
|
|
// h() -> left(0xcafecafe)
|