mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Expect end of string at end of top-level block for assembly parser.
This commit is contained in:
@@ -168,6 +168,11 @@ BOOST_AUTO_TEST_CASE(smoke_test)
|
||||
BOOST_CHECK(successParse("{ }"));
|
||||
}
|
||||
|
||||
BOOST_AUTO_TEST_CASE(surplus_input)
|
||||
{
|
||||
CHECK_PARSE_ERROR("{ } { }", ParserError, "Expected token EOS");
|
||||
}
|
||||
|
||||
BOOST_AUTO_TEST_CASE(simple_instructions)
|
||||
{
|
||||
BOOST_CHECK(successParse("{ dup1 dup1 mul dup1 sub pop }"));
|
||||
|
||||
Reference in New Issue
Block a user