solidity/test/libyul/ewasmTranslationTests/codesize.yul
2019-12-10 17:00:45 +00:00

10 lines
291 B
Plaintext

{
sstore(0, codesize())
}
// ----
// Trace:
// Memory dump:
// 20: 0000000000000000000000000000000000000000000000000000000000000014
// Storage dump:
// 0000000000000000000000000000000000000000000000000000000000000000: 0000000000000000000000000000000000000000000000000000000000000014