diff options
author | Alex Beregszaszi <alex@rtfs.hu> | 2017-08-22 06:21:27 +0800 |
---|---|---|
committer | Alex Beregszaszi <alex@rtfs.hu> | 2017-08-23 01:24:22 +0800 |
commit | 70bb1e74788b7c2938ab15e14ee048cf9a1a7743 (patch) | |
tree | cb6c4d380afb50d3bb02bad986ea52b8a1eae56b /test/libsolidity/SolidityParser.cpp | |
parent | 9e8d2a561f79be15f3ebdbdd139835b50baa43ce (diff) | |
download | dexon-solidity-70bb1e74788b7c2938ab15e14ee048cf9a1a7743.tar.gz dexon-solidity-70bb1e74788b7c2938ab15e14ee048cf9a1a7743.tar.zst dexon-solidity-70bb1e74788b7c2938ab15e14ee048cf9a1a7743.zip |
Update tests for view
Diffstat (limited to 'test/libsolidity/SolidityParser.cpp')
-rw-r--r-- | test/libsolidity/SolidityParser.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/libsolidity/SolidityParser.cpp b/test/libsolidity/SolidityParser.cpp index 30dc80d9..8e84ead1 100644 --- a/test/libsolidity/SolidityParser.cpp +++ b/test/libsolidity/SolidityParser.cpp @@ -920,6 +920,11 @@ BOOST_AUTO_TEST_CASE(multiple_statemutability_specifiers) CHECK_PARSE_ERROR(text, "State mutability already specified as \"view\"."); text = R"( contract c { + function f() constant view {} + })"; + CHECK_PARSE_ERROR(text, "State mutability already specified as \"view\"."); + text = R"( + contract c { function f() payable constant {} })"; CHECK_PARSE_ERROR(text, "State mutability already specified as \"payable\"."); |