diff options
author | chriseth <chris@ethereum.org> | 2018-02-21 01:39:00 +0800 |
---|---|---|
committer | chriseth <chris@ethereum.org> | 2018-02-21 07:41:39 +0800 |
commit | e2bf5de8a278e04623c7bb34a925372039095ba7 (patch) | |
tree | b0d463b41860016abcb67ce152c726a8be5b9089 /test/libsolidity/InlineAssembly.cpp | |
parent | f5f00b4ee9e6e9038e3b84986ab3ff78504331fd (diff) | |
download | dexon-solidity-e2bf5de8a278e04623c7bb34a925372039095ba7.tar.gz dexon-solidity-e2bf5de8a278e04623c7bb34a925372039095ba7.tar.zst dexon-solidity-e2bf5de8a278e04623c7bb34a925372039095ba7.zip |
Expect end of string at end of top-level block for assembly parser.
Diffstat (limited to 'test/libsolidity/InlineAssembly.cpp')
-rw-r--r-- | test/libsolidity/InlineAssembly.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/libsolidity/InlineAssembly.cpp b/test/libsolidity/InlineAssembly.cpp index b09eb261..70620f78 100644 --- a/test/libsolidity/InlineAssembly.cpp +++ b/test/libsolidity/InlineAssembly.cpp @@ -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 }")); |