solidity/test/libyul/yulSyntaxTests/objects/code.yul
Alex Beregszaszi 291c359ee9 Add more syntax tests for Yul objects
Also move some of them from boost tests.
2020-08-05 21:01:46 +01:00

19 lines
359 B
Plaintext

object "A" {
code {
function f() -> offset, len {
offset := dataoffset("A")
len := datasize("A")
}
let offset, len := f()
codecopy(0, offset, len)
}
data "hello" "hello world text"
object "hello" {
code {}
}
}
// ----
// ParserError 8794: (226-233): Object name "hello" already exists inside the containing object.