2020-07-13 17:23:42 +00:00
|
|
|
contract C {
|
|
|
|
function f() public pure returns (string memory) {
|
2020-07-13 20:11:42 +00:00
|
|
|
return unicode"😃, 😭, and 😈";
|
|
|
|
}
|
|
|
|
function g() public pure returns (string memory) {
|
|
|
|
return unicode"😃, 😭,\
|
|
|
|
and 😈";
|
2020-07-13 17:23:42 +00:00
|
|
|
}
|
|
|
|
}
|
2020-07-20 13:06:45 +00:00
|
|
|
// ====
|
2020-11-21 13:54:16 +00:00
|
|
|
// compileToEwasm: also
|
2021-03-12 23:02:36 +00:00
|
|
|
// compileViaYul: also
|
2020-07-13 17:23:42 +00:00
|
|
|
// ----
|
|
|
|
// f() -> 0x20, 0x14, "\xf0\x9f\x98\x83, \xf0\x9f\x98\xad, and \xf0\x9f\x98\x88"
|
2020-07-13 20:11:42 +00:00
|
|
|
// g() -> 0x20, 0x14, "\xf0\x9f\x98\x83, \xf0\x9f\x98\xad, and \xf0\x9f\x98\x88"
|