aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity
diff options
context:
space:
mode:
authorYoichi Hirai <i@yoichihirai.com>2017-07-19 17:41:07 +0800
committerGitHub <noreply@github.com>2017-07-19 17:41:07 +0800
commitbecb7af4a25a52270a23bd26531938bd13cdeeae (patch)
treea4e75a6c9bfee225794d44d4122d39e9b2d53e7e /test/libsolidity
parentd63e7df897cdfdc6212ba8f7cd536016b95277a6 (diff)
parent644de755dc480e97879ba9fd70684d09b275c6cc (diff)
downloaddexon-solidity-becb7af4a25a52270a23bd26531938bd13cdeeae.tar.gz
dexon-solidity-becb7af4a25a52270a23bd26531938bd13cdeeae.tar.zst
dexon-solidity-becb7af4a25a52270a23bd26531938bd13cdeeae.zip
Merge pull request #2597 from ethereum/modifier-internal
Mark modifiers as internal
Diffstat (limited to 'test/libsolidity')
-rw-r--r--test/libsolidity/SolidityNameAndTypeResolution.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/libsolidity/SolidityNameAndTypeResolution.cpp b/test/libsolidity/SolidityNameAndTypeResolution.cpp
index cb39101e..649e7970 100644
--- a/test/libsolidity/SolidityNameAndTypeResolution.cpp
+++ b/test/libsolidity/SolidityNameAndTypeResolution.cpp
@@ -6359,6 +6359,20 @@ BOOST_AUTO_TEST_CASE(explicit_literal_to_storage_string)
CHECK_ERROR(text, TypeError, "Explicit type conversion not allowed from \"literal_string \"abc\"\" to \"string storage pointer\"");
}
+BOOST_AUTO_TEST_CASE(modifiers_access_storage_pointer)
+{
+ char const* text = R"(
+ contract C {
+ struct S { }
+ modifier m(S storage x) {
+ x;
+ _;
+ }
+ }
+ )";
+ CHECK_SUCCESS_NO_WARNINGS(text);
+}
+
BOOST_AUTO_TEST_SUITE_END()
}