aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity
diff options
context:
space:
mode:
authorAlex Beregszaszi <alex@rtfs.hu>2017-08-09 20:22:19 +0800
committerAlex Beregszaszi <alex@rtfs.hu>2017-08-09 21:30:02 +0800
commita8ca623a0f852c738b8bb92b449894ecc73b44e1 (patch)
tree1e04501bd247dbbb5268f9db968c3c9ba2ce7d76 /test/libsolidity
parenta4e39592c71b6b133fd702f7dafef234add4712c (diff)
downloaddexon-solidity-a8ca623a0f852c738b8bb92b449894ecc73b44e1.tar.gz
dexon-solidity-a8ca623a0f852c738b8bb92b449894ecc73b44e1.tar.zst
dexon-solidity-a8ca623a0f852c738b8bb92b449894ecc73b44e1.zip
Add test for multiple visibilites on functions
Diffstat (limited to 'test/libsolidity')
-rw-r--r--test/libsolidity/SolidityParser.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/test/libsolidity/SolidityParser.cpp b/test/libsolidity/SolidityParser.cpp
index 78edd4d1..d7ada518 100644
--- a/test/libsolidity/SolidityParser.cpp
+++ b/test/libsolidity/SolidityParser.cpp
@@ -898,7 +898,12 @@ BOOST_AUTO_TEST_CASE(multiple_visibility_specifiers)
contract c {
uint private internal a;
})";
- CHECK_PARSE_ERROR(text, "Visibility already specified");
+ CHECK_PARSE_ERROR(text, "Visibility already specified.");
+ text = R"(
+ contract c {
+ function f() private external {}
+ })";
+ CHECK_PARSE_ERROR(text, "Visibility already specified.");
}
BOOST_AUTO_TEST_CASE(multiple_payable_specifiers)