aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/SolidityEndToEndTest.cpp
diff options
context:
space:
mode:
authorchriseth <c@ethdev.com>2016-11-08 03:08:05 +0800
committerchriseth <c@ethdev.com>2016-11-16 21:37:18 +0800
commit47794c1da406a28f0e8a10e3e57cd935f5cc7f3d (patch)
tree94a8a509f31f9b5bb8741a10af4ba92c47e88969 /test/libsolidity/SolidityEndToEndTest.cpp
parentb6992d740a849d28f7c2a52bef0ba6b3740c9179 (diff)
downloaddexon-solidity-47794c1da406a28f0e8a10e3e57cd935f5cc7f3d.tar
dexon-solidity-47794c1da406a28f0e8a10e3e57cd935f5cc7f3d.tar.gz
dexon-solidity-47794c1da406a28f0e8a10e3e57cd935f5cc7f3d.tar.bz2
dexon-solidity-47794c1da406a28f0e8a10e3e57cd935f5cc7f3d.tar.lz
dexon-solidity-47794c1da406a28f0e8a10e3e57cd935f5cc7f3d.tar.xz
dexon-solidity-47794c1da406a28f0e8a10e3e57cd935f5cc7f3d.tar.zst
dexon-solidity-47794c1da406a28f0e8a10e3e57cd935f5cc7f3d.zip
Implement uninitialized storage functions.
Diffstat (limited to 'test/libsolidity/SolidityEndToEndTest.cpp')
-rw-r--r--test/libsolidity/SolidityEndToEndTest.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/test/libsolidity/SolidityEndToEndTest.cpp b/test/libsolidity/SolidityEndToEndTest.cpp
index 44dba9b2..c665b050 100644
--- a/test/libsolidity/SolidityEndToEndTest.cpp
+++ b/test/libsolidity/SolidityEndToEndTest.cpp
@@ -7631,8 +7631,6 @@ BOOST_AUTO_TEST_CASE(calling_uninitialized_function)
BOOST_AUTO_TEST_CASE(calling_uninitialized_function_in_detail)
{
- // Storage default value of zero would be correct jump dest, this tests that
- // that is properly handled.
char const* sourceCode = R"(
contract C {
function() internal returns (uint) x;
@@ -7641,7 +7639,7 @@ BOOST_AUTO_TEST_CASE(calling_uninitialized_function_in_detail)
if (mutex > 0)
return 7;
mutex = 1;
- // If this test fails, it will jump to "0" and re-execute this function.
+ // Avoid re-executing this function if we jump somewhere.
x();
return 2;
}