aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity
diff options
context:
space:
mode:
authorchriseth <chris@ethereum.org>2016-11-14 20:22:55 +0800
committerAlex Beregszaszi <alex@rtfs.hu>2016-11-30 19:16:43 +0800
commit4ff89dda1d9d81170b65775b33c1cfbd7e5e6b48 (patch)
treecbb6d4bae3a901d76bf957156ab3a7e563147a89 /test/libsolidity
parent8d0b80f944c42e871e42c320dfabf92c707ed9b7 (diff)
downloaddexon-solidity-4ff89dda1d9d81170b65775b33c1cfbd7e5e6b48.tar.gz
dexon-solidity-4ff89dda1d9d81170b65775b33c1cfbd7e5e6b48.tar.zst
dexon-solidity-4ff89dda1d9d81170b65775b33c1cfbd7e5e6b48.zip
Update SolidityOptimizer.cpp
Diffstat (limited to 'test/libsolidity')
-rw-r--r--test/libsolidity/SolidityOptimizer.cpp6
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
});