mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
47 lines
1.1 KiB
Plaintext
47 lines
1.1 KiB
Plaintext
object "a" {
|
|
code {}
|
|
// Unreferenced data is not added to the assembled bytecode.
|
|
data "str" "Hello, World!"
|
|
object "sub" {
|
|
code { sstore(0, 1) }
|
|
object "subsub" {
|
|
code { sstore(2, 3) }
|
|
data "str" hex"123456"
|
|
}
|
|
}
|
|
}
|
|
// ----
|
|
// Assembly:
|
|
// /* "source":20:22 */
|
|
// stop
|
|
// stop
|
|
// data_acaf3289d7b601cbd114fb36c4d29c85bbfd5e133f14cb355c3fd8d99367964f 48656c6c6f2c20576f726c6421
|
|
//
|
|
// sub_0: assembly {
|
|
// /* "source":153:154 */
|
|
// 0x01
|
|
// /* "source":150:151 */
|
|
// 0x00
|
|
// /* "source":143:155 */
|
|
// sstore
|
|
// /* "source":141:157 */
|
|
// stop
|
|
// stop
|
|
//
|
|
// sub_0: assembly {
|
|
// /* "source":203:204 */
|
|
// 0x03
|
|
// /* "source":200:201 */
|
|
// 0x02
|
|
// /* "source":193:205 */
|
|
// sstore
|
|
// /* "source":191:207 */
|
|
// stop
|
|
// stop
|
|
// data_6adf031833174bbe4c85eafe59ddb54e6584648c2c962c6f94791ab49caa0ad4 123456
|
|
// }
|
|
// }
|
|
// Bytecode: 00fe
|
|
// Opcodes: STOP INVALID
|
|
// SourceMappings: 20:2:0:-:0
|