aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/ASTJSON.cpp
diff options
context:
space:
mode:
authorchriseth <chris@ethereum.org>2018-07-05 16:32:07 +0800
committerGitHub <noreply@github.com>2018-07-05 16:32:07 +0800
commitb1ab81ef22030ee16c6d216bfe6a4dc74b726985 (patch)
tree015230d617c4ee73ee3225e4ab74c5afd42a8102 /test/libsolidity/ASTJSON.cpp
parent7101a8905656d52cf9023a2e4340219d184920c3 (diff)
parent87ab7d18218dd404ed4a06c60b8ed435b0a3c90f (diff)
downloaddexon-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/ASTJSON.cpp')
-rw-r--r--test/libsolidity/ASTJSON.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/libsolidity/ASTJSON.cpp b/test/libsolidity/ASTJSON.cpp
index 5d5b14e8..03e74097 100644
--- a/test/libsolidity/ASTJSON.cpp
+++ b/test/libsolidity/ASTJSON.cpp
@@ -44,7 +44,7 @@ BOOST_AUTO_TEST_SUITE(SolidityASTJSON)
BOOST_AUTO_TEST_CASE(short_type_name)
{
CompilerStack c;
- c.addSource("a", "contract c { function f() { uint[] memory x; } }");
+ c.addSource("a", "contract c { function f() public { uint[] memory x; } }");
c.setEVMVersion(dev::test::Options::get().evmVersion());
c.parseAndAnalyze();
map<string, unsigned> sourceIndices;
@@ -59,7 +59,7 @@ BOOST_AUTO_TEST_CASE(short_type_name)
BOOST_AUTO_TEST_CASE(short_type_name_ref)
{
CompilerStack c;
- c.addSource("a", "contract c { function f() { uint[][] memory rows; } }");
+ c.addSource("a", "contract c { function f() public { uint[][] memory rows; } }");
c.setEVMVersion(dev::test::Options::get().evmVersion());
c.parseAndAnalyze();
map<string, unsigned> sourceIndices;