diff options
author | chriseth <chris@ethereum.org> | 2016-11-14 20:22:55 +0800 |
---|---|---|
committer | Alex Beregszaszi <alex@rtfs.hu> | 2016-11-30 19:16:43 +0800 |
commit | 4ff89dda1d9d81170b65775b33c1cfbd7e5e6b48 (patch) | |
tree | cbb6d4bae3a901d76bf957156ab3a7e563147a89 /test | |
parent | 8d0b80f944c42e871e42c320dfabf92c707ed9b7 (diff) | |
download | dexon-solidity-4ff89dda1d9d81170b65775b33c1cfbd7e5e6b48.tar dexon-solidity-4ff89dda1d9d81170b65775b33c1cfbd7e5e6b48.tar.gz dexon-solidity-4ff89dda1d9d81170b65775b33c1cfbd7e5e6b48.tar.bz2 dexon-solidity-4ff89dda1d9d81170b65775b33c1cfbd7e5e6b48.tar.lz dexon-solidity-4ff89dda1d9d81170b65775b33c1cfbd7e5e6b48.tar.xz dexon-solidity-4ff89dda1d9d81170b65775b33c1cfbd7e5e6b48.tar.zst dexon-solidity-4ff89dda1d9d81170b65775b33c1cfbd7e5e6b48.zip |
Update SolidityOptimizer.cpp
Diffstat (limited to 'test')
-rw-r--r-- | test/libsolidity/SolidityOptimizer.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/libsolidity/SolidityOptimizer.cpp b/test/libsolidity/SolidityOptimizer.cpp index 90caaab0..00a636fd 100644 --- a/test/libsolidity/SolidityOptimizer.cpp +++ b/test/libsolidity/SolidityOptimizer.cpp @@ -1308,18 +1308,18 @@ BOOST_AUTO_TEST_CASE(cse_sub_zero) { checkCSE({ u256(0), - u256(5), + Instruction::DUP2, Instruction::SUB }, { u256(5) }); checkCSE({ - u256(5), + Instruction::DUP2, u256(0), Instruction::SUB }, { - u256(5), + Instruction::DUP2, u256(0), Instruction::SUB }); |