mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Test for long object names in optimizer.
This commit is contained in:
parent
ba4e05c62c
commit
fc34c81f4c
25
test/libyul/objectCompiler/long_object_name.yul
Normal file
25
test/libyul/objectCompiler/long_object_name.yul
Normal file
@ -0,0 +1,25 @@
|
||||
object "t" {
|
||||
code {
|
||||
sstore(0, datasize("name_that_is_longer_than_32_bytes_name_that_is_longer_than_32_bytes_name_that_is_longer_than_32_bytes"))
|
||||
}
|
||||
object "name_that_is_longer_than_32_bytes_name_that_is_longer_than_32_bytes_name_that_is_longer_than_32_bytes" {
|
||||
code {}
|
||||
}
|
||||
}
|
||||
// ====
|
||||
// optimize: true
|
||||
// ----
|
||||
// Assembly:
|
||||
// /* "source":23:147 */
|
||||
// dataSize(sub_0)
|
||||
// /* "source":30:31 */
|
||||
// 0x00
|
||||
// /* "source":23:147 */
|
||||
// sstore
|
||||
// stop
|
||||
//
|
||||
// sub_0: assembly {
|
||||
// }
|
||||
// Bytecode: 6000600055fe
|
||||
// Opcodes: PUSH1 0x0 PUSH1 0x0 SSTORE INVALID
|
||||
// SourceMappings: 23:124:0:-:0;30:1;23:124
|
Loading…
Reference in New Issue
Block a user