solidity/test/libyul/objectCompiler/dataoffset_self.yul
Daniel Kirchner 44da8507b1 Change default EVM version to Shanghai.
Co-authored-by: Rodrigo Q. Saramago <rodrigoqsaramago@gmail.com>
2023-05-08 16:34:23 +02:00

18 lines
437 B
Plaintext

object "a" {
code { sstore(0, dataoffset("a")) }
data "data1" "Hello, World!"
}
// ----
// Assembly:
// /* "source":32:47 */
// 0x00
// /* "source":29:30 */
// dup1
// /* "source":22:48 */
// sstore
// stop
// data_acaf3289d7b601cbd114fb36c4d29c85bbfd5e133f14cb355c3fd8d99367964f 48656c6c6f2c20576f726c6421
// Bytecode: 5f8055fe
// Opcodes: PUSH0 DUP1 SSTORE INVALID
// SourceMappings: 32:15:0:-:0;29:1;22:26