aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity
diff options
context:
space:
mode:
authorAlex Beregszaszi <alex@rtfs.hu>2017-07-19 05:58:48 +0800
committerAlex Beregszaszi <alex@rtfs.hu>2017-07-19 06:00:17 +0800
commit644de755dc480e97879ba9fd70684d09b275c6cc (patch)
tree724778f1b27918084041eee9bdc4ccabb8c979f8 /test/libsolidity
parent01fbc636239f78134b37f9dedeacf40455ee2e0c (diff)
downloaddexon-solidity-644de755dc480e97879ba9fd70684d09b275c6cc.tar
dexon-solidity-644de755dc480e97879ba9fd70684d09b275c6cc.tar.gz
dexon-solidity-644de755dc480e97879ba9fd70684d09b275c6cc.tar.bz2
dexon-solidity-644de755dc480e97879ba9fd70684d09b275c6cc.tar.lz
dexon-solidity-644de755dc480e97879ba9fd70684d09b275c6cc.tar.xz
dexon-solidity-644de755dc480e97879ba9fd70684d09b275c6cc.tar.zst
dexon-solidity-644de755dc480e97879ba9fd70684d09b275c6cc.zip
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()
}