solidity/test/libyul/objectCompiler/datasize_self.yul

18 lines
450 B
Plaintext
Raw Normal View History

2018-12-06 23:56:16 +00:00
object "a" {
code { sstore(0, datasize("a")) }
data "data1" "Hello, World!"
}
// ----
// Assembly:
// /* "source":32:45 */
2018-12-06 23:56:16 +00:00
// bytecodeSize
// /* "source":29:30 */
// 0x00
// /* "source":22:46 */
// sstore
// stop
// data_acaf3289d7b601cbd114fb36c4d29c85bbfd5e133f14cb355c3fd8d99367964f 48656c6c6f2c20576f726c6421
// Bytecode: 60055f55fe
// Opcodes: PUSH1 0x5 PUSH0 SSTORE INVALID
// SourceMappings: 32:13:0:-:0;29:1;22:24