mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
16 lines
695 B
Solidity
16 lines
695 B
Solidity
pragma abicoder v2;
|
|
|
|
contract C {
|
|
string sString = "text2";
|
|
|
|
function f(string calldata cString) public returns (string[] memory) {
|
|
string memory mString = "text3";
|
|
return ["", "text1", sString, mString, cString];
|
|
}
|
|
}
|
|
|
|
// ====
|
|
// compileViaYul: true
|
|
// ----
|
|
// f(string): 0x20, 5, "text4" -> 0x20, 5, 0xa0, 0xc0, 0x0100, 0x0140, 0x0180, 0, 5, 52647573331277248417481526129911949709942841133814091230869433742303074189312, 5, 52647573331382560709150083316609867737626511566132986326269982853557385166848, 5, 52647573331487873000818640503307785765310181998451881421670531964811696144384, 5, 52647573331593185292487197690005703792993852430770776517071081076066007121920
|