mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Tests for SSAValueTracker ignoring function call on rhs
This commit is contained in:
parent
32c9da9419
commit
f4e9c70ecc
@ -0,0 +1,14 @@
|
|||||||
|
{
|
||||||
|
function f() -> x, z {}
|
||||||
|
let c, d := f()
|
||||||
|
let y := add(d, add(c, 7))
|
||||||
|
}
|
||||||
|
// ----
|
||||||
|
// expressionSimplifier
|
||||||
|
// {
|
||||||
|
// function f() -> x, z
|
||||||
|
// {
|
||||||
|
// }
|
||||||
|
// let c, d := f()
|
||||||
|
// let y := add(add(d, c), 7)
|
||||||
|
// }
|
@ -0,0 +1,12 @@
|
|||||||
|
// c & d can't be optimized as expression simplifier doesn't handle default
|
||||||
|
// values yet
|
||||||
|
{
|
||||||
|
let c, d
|
||||||
|
let y := add(d, add(c, 7))
|
||||||
|
}
|
||||||
|
// ----
|
||||||
|
// expressionSimplifier
|
||||||
|
// {
|
||||||
|
// let c, d
|
||||||
|
// let y := add(add(d, c), 7)
|
||||||
|
// }
|
Loading…
Reference in New Issue
Block a user