StandardCompiler: Don't assume that link reference always contains a colon

This commit is contained in:
Kamil Śliwak
2020-11-16 17:41:54 +01:00
parent 543f804226
commit b97c6c55ad
6 changed files with 92 additions and 3 deletions
@@ -0,0 +1 @@
--strict-assembly --libraries L:0x1234567890123456789012345678901234567890
@@ -0,0 +1 @@
Warning: Yul is still experimental. Please use the output with care.
@@ -0,0 +1,5 @@
object "a" {
code {
let addr := linkersymbol("L")
}
}
@@ -0,0 +1,16 @@
======= linking_strict_assembly_no_file_name_in_link_reference/input.yul (EVM) =======
Pretty printed source:
object "a" {
code { let addr := linkersymbol("L") }
}
Binary representation:
73123456789012345678901234567890123456789050
Text representation:
linkerSymbol("8aa64f937099b65a4febc243a5ae0f2d6416bb9e473c30dd29c1ee498fb7c5a8")
/* "linking_strict_assembly_no_file_name_in_link_reference/input.yul":22:67 */
pop