diff options
author | chriseth <chris@ethereum.org> | 2018-07-05 16:32:07 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-07-05 16:32:07 +0800 |
commit | b1ab81ef22030ee16c6d216bfe6a4dc74b726985 (patch) | |
tree | 015230d617c4ee73ee3225e4ab74c5afd42a8102 /test/libsolidity/Assembly.cpp | |
parent | 7101a8905656d52cf9023a2e4340219d184920c3 (diff) | |
parent | 87ab7d18218dd404ed4a06c60b8ed435b0a3c90f (diff) | |
download | dexon-solidity-b1ab81ef22030ee16c6d216bfe6a4dc74b726985.tar dexon-solidity-b1ab81ef22030ee16c6d216bfe6a4dc74b726985.tar.gz dexon-solidity-b1ab81ef22030ee16c6d216bfe6a4dc74b726985.tar.bz2 dexon-solidity-b1ab81ef22030ee16c6d216bfe6a4dc74b726985.tar.lz dexon-solidity-b1ab81ef22030ee16c6d216bfe6a4dc74b726985.tar.xz dexon-solidity-b1ab81ef22030ee16c6d216bfe6a4dc74b726985.tar.zst dexon-solidity-b1ab81ef22030ee16c6d216bfe6a4dc74b726985.zip |
Merge pull request #4387 from ethereum/endToEndDefaultVisbility
Specify default visibility in unit tests
Diffstat (limited to 'test/libsolidity/Assembly.cpp')
-rw-r--r-- | test/libsolidity/Assembly.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/test/libsolidity/Assembly.cpp b/test/libsolidity/Assembly.cpp index 7b3df043..e815d7d5 100644 --- a/test/libsolidity/Assembly.cpp +++ b/test/libsolidity/Assembly.cpp @@ -152,7 +152,7 @@ BOOST_AUTO_TEST_CASE(location_test) { char const* sourceCode = R"( contract test { - function f() returns (uint256 a) { + function f() public returns (uint256 a) { return 16; } } @@ -160,19 +160,19 @@ BOOST_AUTO_TEST_CASE(location_test) AssemblyItems items = compileContract(sourceCode); bool hasShifts = dev::test::Options::get().evmVersion().hasBitwiseShifting(); vector<SourceLocation> locations = - vector<SourceLocation>(hasShifts ? 23 : 24, SourceLocation(2, 75, make_shared<string>(""))) + - vector<SourceLocation>(2, SourceLocation(20, 72, make_shared<string>(""))) + + vector<SourceLocation>(hasShifts ? 23 : 24, SourceLocation(2, 82, make_shared<string>(""))) + + vector<SourceLocation>(2, SourceLocation(20, 79, make_shared<string>(""))) + vector<SourceLocation>(1, SourceLocation(8, 17, make_shared<string>("--CODEGEN--"))) + vector<SourceLocation>(3, SourceLocation(5, 7, make_shared<string>("--CODEGEN--"))) + vector<SourceLocation>(1, SourceLocation(30, 31, make_shared<string>("--CODEGEN--"))) + vector<SourceLocation>(1, SourceLocation(27, 28, make_shared<string>("--CODEGEN--"))) + vector<SourceLocation>(1, SourceLocation(20, 32, make_shared<string>("--CODEGEN--"))) + vector<SourceLocation>(1, SourceLocation(5, 7, make_shared<string>("--CODEGEN--"))) + - vector<SourceLocation>(24, SourceLocation(20, 72, make_shared<string>(""))) + - vector<SourceLocation>(1, SourceLocation(42, 51, make_shared<string>(""))) + - vector<SourceLocation>(1, SourceLocation(65, 67, make_shared<string>(""))) + - vector<SourceLocation>(2, SourceLocation(58, 67, make_shared<string>(""))) + - vector<SourceLocation>(2, SourceLocation(20, 72, make_shared<string>(""))); + vector<SourceLocation>(24, SourceLocation(20, 79, make_shared<string>(""))) + + vector<SourceLocation>(1, SourceLocation(49, 58, make_shared<string>(""))) + + vector<SourceLocation>(1, SourceLocation(72, 74, make_shared<string>(""))) + + vector<SourceLocation>(2, SourceLocation(65, 74, make_shared<string>(""))) + + vector<SourceLocation>(2, SourceLocation(20, 79, make_shared<string>(""))); checkAssemblyLocations(items, locations); } |