aboutsummaryrefslogtreecommitdiffstats
path: root/test/libyul/objectCompiler/subObject.yul
blob: 98ea4d07944cffbafe066e021627ee1d74b795e7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
object "a" {
  code {}
  // Unreferenced data is not added to the assembled bytecode.
  data "str" "Hello, World!"
  object "sub" { code { sstore(0, 1) } }
}
// ----
// Assembly:
// stop
// data_acaf3289d7b601cbd114fb36c4d29c85bbfd5e133f14cb355c3fd8d99367964f 48656c6c6f2c20576f726c6421
//
// sub_0: assembly {
//         /* "source":149:150   */
//       0x01
//         /* "source":146:147   */
//       0x00
//         /* "source":139:151   */
//       sstore
// }
// Bytecode: fe
// Opcodes: INVALID