diff options
author | chriseth <chris@ethereum.org> | 2018-09-17 22:32:30 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-09-17 22:32:30 +0800 |
commit | da90bc02247dbd500de191135322474e34c5874c (patch) | |
tree | f97d8988fb635fd172479f0d2e6a7af21d971ea2 /test | |
parent | 804ea43782af1707bf7d36bfd1ead352fca9917e (diff) | |
parent | aae385031f0f3d2d4281f1905616e59450e7c3ae (diff) | |
download | dexon-solidity-da90bc02247dbd500de191135322474e34c5874c.tar.gz dexon-solidity-da90bc02247dbd500de191135322474e34c5874c.tar.zst dexon-solidity-da90bc02247dbd500de191135322474e34c5874c.zip |
Merge pull request #4984 from elopio/add-missing-inliner-test
Add a missing tests for yul inliner optimization
Diffstat (limited to 'test')
-rw-r--r-- | test/libjulia/Inliner.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/libjulia/Inliner.cpp b/test/libjulia/Inliner.cpp index 2f5b7cff..43a7d757 100644 --- a/test/libjulia/Inliner.cpp +++ b/test/libjulia/Inliner.cpp @@ -116,6 +116,9 @@ BOOST_AUTO_TEST_CASE(negative) BOOST_CHECK_EQUAL(inlinableFunctions("{ function f() -> x:u256 { x := f() } }"), ""); BOOST_CHECK_EQUAL(inlinableFunctions("{ function f() -> x:u256 { x := x } }"), ""); BOOST_CHECK_EQUAL(inlinableFunctions("{ function f() -> x:u256, y:u256 { x := 2:u256 } }"), ""); + BOOST_CHECK_EQUAL(inlinableFunctions( + "{ function g() -> x:u256, y:u256 {} function f(y:u256) -> x:u256 { x,y := g() } }"), ""); + BOOST_CHECK_EQUAL(inlinableFunctions("{ function f(y:u256) -> x:u256 { y := 2:u256 } }"), ""); } |