diff options
author | chriseth <chris@ethereum.org> | 2018-12-07 07:56:16 +0800 |
---|---|---|
committer | chriseth <chris@ethereum.org> | 2018-12-12 02:24:44 +0800 |
commit | fb3a0ac1c7d2c4624df6ae62d290a2de7768d036 (patch) | |
tree | 72a8593bf822032ecf50dbc8e1c78e899a5befd4 /test/libyul/objectCompiler/dataoffset_self.yul | |
parent | 8d49e539951791a25a63f470e8a9935679c7404f (diff) | |
download | dexon-solidity-fb3a0ac1c7d2c4624df6ae62d290a2de7768d036.tar.gz dexon-solidity-fb3a0ac1c7d2c4624df6ae62d290a2de7768d036.tar.zst dexon-solidity-fb3a0ac1c7d2c4624df6ae62d290a2de7768d036.zip |
Codegen for object access.
Diffstat (limited to 'test/libyul/objectCompiler/dataoffset_self.yul')
-rw-r--r-- | test/libyul/objectCompiler/dataoffset_self.yul | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/test/libyul/objectCompiler/dataoffset_self.yul b/test/libyul/objectCompiler/dataoffset_self.yul new file mode 100644 index 00000000..b7740735 --- /dev/null +++ b/test/libyul/objectCompiler/dataoffset_self.yul @@ -0,0 +1,16 @@ +object "a" { + code { sstore(0, dataoffset("a")) } + data "data1" "Hello, World!" +} +// ---- +// Assembly: +// /* "source":22:48 */ +// 0x00 +// /* "source":29:30 */ +// 0x00 +// /* "source":22:48 */ +// sstore +// stop +// data_acaf3289d7b601cbd114fb36c4d29c85bbfd5e133f14cb355c3fd8d99367964f 48656c6c6f2c20576f726c6421 +// Bytecode: 6000600055fe +// Opcodes: PUSH1 0x0 PUSH1 0x0 SSTORE INVALID |