diff options
author | chriseth <c@ethdev.com> | 2016-08-06 21:08:06 +0800 |
---|---|---|
committer | chriseth <c@ethdev.com> | 2016-08-16 20:52:47 +0800 |
commit | 6df672816515aece1a3a9f018761450c56e05320 (patch) | |
tree | d1a81e461a09046b20bb8efb27c35547bf321073 /test | |
parent | e3e4d84f3353eaaaadae7c1c6eac9e890188d0f8 (diff) | |
download | dexon-solidity-6df672816515aece1a3a9f018761450c56e05320.tar dexon-solidity-6df672816515aece1a3a9f018761450c56e05320.tar.gz dexon-solidity-6df672816515aece1a3a9f018761450c56e05320.tar.bz2 dexon-solidity-6df672816515aece1a3a9f018761450c56e05320.tar.lz dexon-solidity-6df672816515aece1a3a9f018761450c56e05320.tar.xz dexon-solidity-6df672816515aece1a3a9f018761450c56e05320.tar.zst dexon-solidity-6df672816515aece1a3a9f018761450c56e05320.zip |
Require modifiers to contain "_".
Diffstat (limited to 'test')
-rw-r--r-- | test/libsolidity/SolidityNameAndTypeResolution.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/libsolidity/SolidityNameAndTypeResolution.cpp b/test/libsolidity/SolidityNameAndTypeResolution.cpp index 7e81bd7e..2e00a510 100644 --- a/test/libsolidity/SolidityNameAndTypeResolution.cpp +++ b/test/libsolidity/SolidityNameAndTypeResolution.cpp @@ -3823,6 +3823,16 @@ BOOST_AUTO_TEST_CASE(unused_return_value_delegatecall) BOOST_CHECK(expectError(text, true) == Error::Type::Warning); } +BOOST_AUTO_TEST_CASE(modifier_without_underscore) +{ + char const* text = R"( + contract test { + modifier m() {} + } + )"; + BOOST_CHECK(expectError(text, true) == Error::Type::SyntaxError); +} + BOOST_AUTO_TEST_SUITE_END() } |