solidity/test/libyul/objectCompiler/dataoffset_self.yul

20 lines
490 B
Plaintext
Raw Normal View History

2018-12-06 23:56:16 +00:00
object "a" {
code { sstore(0, dataoffset("a")) }
data "data1" "Hello, World!"
}
// ----
// Assembly:
// /* "source":32:47 */
2018-12-06 23:56:16 +00:00
// 0x00
// /* "source":29:30 */
2021-07-01 12:17:27 +00:00
// dup1
2018-12-06 23:56:16 +00:00
// /* "source":22:48 */
// sstore
2023-05-16 09:40:04 +00:00
// /* "source":20:50 */
// stop
2018-12-06 23:56:16 +00:00
// stop
// data_acaf3289d7b601cbd114fb36c4d29c85bbfd5e133f14cb355c3fd8d99367964f 48656c6c6f2c20576f726c6421
2023-05-16 09:40:04 +00:00
// Bytecode: 5f805500fe
// Opcodes: PUSH0 DUP1 SSTORE STOP INVALID
// SourceMappings: 32:15:0:-:0;29:1;22:26;20:30