Yul codegen for .selector.

This commit is contained in:
chriseth
2020-04-16 13:42:58 +02:00
parent 0f7a5e8062
commit f271dfa2e2
3 changed files with 25 additions and 4 deletions
@@ -19,6 +19,8 @@ contract C {
return this.x.selector;
}
}
// ====
// compileViaYul: also
// ----
// f() -> 0x26121ff000000000000000000000000000000000000000000000000000000000
// g() -> 0x26121ff000000000000000000000000000000000000000000000000000000000
@@ -15,6 +15,8 @@ contract C {
return (a.f.selector, a.g.selector, b.f.selector, b.g.selector);
}
}
// ====
// compileViaYul: also
// ----
// test1() -> left(0x26121ff0), left(0xe420264a), left(0x26121ff0), left(0xe420264a)
// test2() -> left(0x26121ff0), left(0xe420264a), left(0x26121ff0), left(0xe420264a)