diff options
author | chriseth <chris@ethereum.org> | 2018-02-09 23:54:08 +0800 |
---|---|---|
committer | chriseth <chris@ethereum.org> | 2018-02-27 19:17:25 +0800 |
commit | 69f5f2eb65969c8aa1ee0438601c0a0938f2d0a5 (patch) | |
tree | 2ac93ff4fc68d7e354eacd11c04cbb528cc69d12 /test/libsolidity/SMTChecker.cpp | |
parent | e6d48bb72a82e2b3140d5a98da2961e401430a25 (diff) | |
download | dexon-solidity-69f5f2eb65969c8aa1ee0438601c0a0938f2d0a5.tar.gz dexon-solidity-69f5f2eb65969c8aa1ee0438601c0a0938f2d0a5.tar.zst dexon-solidity-69f5f2eb65969c8aa1ee0438601c0a0938f2d0a5.zip |
Adjust tests.
Diffstat (limited to 'test/libsolidity/SMTChecker.cpp')
-rw-r--r-- | test/libsolidity/SMTChecker.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/test/libsolidity/SMTChecker.cpp b/test/libsolidity/SMTChecker.cpp index 5088ab94..12b5f439 100644 --- a/test/libsolidity/SMTChecker.cpp +++ b/test/libsolidity/SMTChecker.cpp @@ -466,7 +466,8 @@ BOOST_AUTO_TEST_CASE(for_loop) text = R"( contract C { function f(uint x) public pure { - for (uint y = 2; x < 10; ) { + uint y; + for (y = 2; x < 10; ) { y = 3; } assert(y == 3); @@ -477,7 +478,8 @@ BOOST_AUTO_TEST_CASE(for_loop) text = R"( contract C { function f(uint x) public pure { - for (uint y = 2; x < 10; ) { + uint y; + for (y = 2; x < 10; ) { y = 3; } assert(y == 2); |