diff options
author | Alex Beregszaszi <alex@rtfs.hu> | 2018-01-08 08:39:22 +0800 |
---|---|---|
committer | Alex Beregszaszi <alex@rtfs.hu> | 2018-01-08 08:39:22 +0800 |
commit | 42f88757708c42f447572c9b96da06c06329e9bc (patch) | |
tree | afbb0156aa46cd68cd82d010298629aa5bf7fb7c /test/libsolidity/InlineAssembly.cpp | |
parent | 767052f2f78a2fd7cd37991945b0a3f559851822 (diff) | |
download | dexon-solidity-42f88757708c42f447572c9b96da06c06329e9bc.tar dexon-solidity-42f88757708c42f447572c9b96da06c06329e9bc.tar.gz dexon-solidity-42f88757708c42f447572c9b96da06c06329e9bc.tar.bz2 dexon-solidity-42f88757708c42f447572c9b96da06c06329e9bc.tar.lz dexon-solidity-42f88757708c42f447572c9b96da06c06329e9bc.tar.xz dexon-solidity-42f88757708c42f447572c9b96da06c06329e9bc.tar.zst dexon-solidity-42f88757708c42f447572c9b96da06c06329e9bc.zip |
Show restricted instruction warning before argument mismatch issue
Diffstat (limited to 'test/libsolidity/InlineAssembly.cpp')
-rw-r--r-- | test/libsolidity/InlineAssembly.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/libsolidity/InlineAssembly.cpp b/test/libsolidity/InlineAssembly.cpp index 9e87849b..216e1422 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, "Expected token \"(\" (\"callvalue\" expects 0 arguments)"); + CHECK_STRICT_ERROR("{ pop(callvalue) }", ParserError, "Instruction \"callvalue\" 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, "Expected token \"(\" (\"callvalue\" expects 0 arguments)"); + CHECK_STRICT_ERROR("{ switch callvalue case 0 {} }", ParserError, "Instruction \"callvalue\" not allowed in this context"); } BOOST_AUTO_TEST_CASE(no_labels_in_strict) @@ -509,8 +509,8 @@ BOOST_AUTO_TEST_CASE(no_dup_swap_in_strict) CHECK_STRICT_ERROR("{ swap2 }", ParserError, "Call or assignment expected."); BOOST_CHECK(successParse("{ dup2 pop }")); CHECK_STRICT_ERROR("{ dup2 pop }", ParserError, "Call or assignment expected."); - CHECK_PARSE_ERROR("{ switch dup1 case 0 {} }", ParserError, "Expected token \"(\" (\"dup1\" expects 1 arguments)"); - CHECK_STRICT_ERROR("{ switch dup1 case 0 {} }", ParserError, "Expected token \"(\" (\"dup1\" expects 1 arguments)"); + CHECK_PARSE_ERROR("{ switch dup1 case 0 {} }", ParserError, "Instruction \"dup1\" not allowed in this context"); + CHECK_STRICT_ERROR("{ switch dup1 case 0 {} }", ParserError, "Instruction \"dup1\" not allowed in this context"); } BOOST_AUTO_TEST_SUITE_END() |