mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
291c359ee9
Also move some of them from boost tests.
19 lines
359 B
Plaintext
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.
|