diff options
author | Alex Beregszaszi <alex@rtfs.hu> | 2018-01-10 01:30:14 +0800 |
---|---|---|
committer | chriseth <chris@ethereum.org> | 2018-01-10 21:16:46 +0800 |
commit | 8b20a7cd53b04a4b3b3e26df4ddd9ad81d28bb1b (patch) | |
tree | 24ae6722975b86c4702d12feb825f3e3aa8663c5 /test/libsolidity/InlineAssembly.cpp | |
parent | 42f88757708c42f447572c9b96da06c06329e9bc (diff) | |
download | dexon-solidity-8b20a7cd53b04a4b3b3e26df4ddd9ad81d28bb1b.tar.gz dexon-solidity-8b20a7cd53b04a4b3b3e26df4ddd9ad81d28bb1b.tar.zst dexon-solidity-8b20a7cd53b04a4b3b3e26df4ddd9ad81d28bb1b.zip |
Disallow non-functional instructions in parseExpression early
Diffstat (limited to 'test/libsolidity/InlineAssembly.cpp')
-rw-r--r-- | test/libsolidity/InlineAssembly.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/libsolidity/InlineAssembly.cpp b/test/libsolidity/InlineAssembly.cpp index 216e1422..b09eb261 100644 --- a/test/libsolidity/InlineAssembly.cpp +++ b/test/libsolidity/InlineAssembly.cpp @@ -480,11 +480,11 @@ BOOST_AUTO_TEST_CASE(no_opcodes_in_strict) { BOOST_CHECK(successParse("{ pop(callvalue) }")); BOOST_CHECK(successParse("{ callvalue pop }")); - CHECK_STRICT_ERROR("{ pop(callvalue) }", ParserError, "Instruction \"callvalue\" not allowed in this context"); + CHECK_STRICT_ERROR("{ pop(callvalue) }", ParserError, "Non-functional instructions are not allowed in this context."); CHECK_STRICT_ERROR("{ callvalue pop }", ParserError, "Call or assignment expected"); SUCCESS_STRICT("{ pop(callvalue()) }"); BOOST_CHECK(successParse("{ switch callvalue case 0 {} }")); - CHECK_STRICT_ERROR("{ switch callvalue case 0 {} }", ParserError, "Instruction \"callvalue\" not allowed in this context"); + CHECK_STRICT_ERROR("{ switch callvalue case 0 {} }", ParserError, "Non-functional instructions are not allowed in this context."); } BOOST_AUTO_TEST_CASE(no_labels_in_strict) |