aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity
diff options
context:
space:
mode:
authorchriseth <chris@ethereum.org>2018-02-21 07:41:57 +0800
committerGitHub <noreply@github.com>2018-02-21 07:41:57 +0800
commit3076a434baccfebb1c3f35b4cb74a3283a195e26 (patch)
tree9c4bdd3627078cd6e0fa7eb505e713f7dc4cde33 /test/libsolidity
parent70790d4729a8cee7d587bf274ed1733b255b2120 (diff)
parente2bf5de8a278e04623c7bb34a925372039095ba7 (diff)
downloaddexon-solidity-3076a434baccfebb1c3f35b4cb74a3283a195e26.tar.gz
dexon-solidity-3076a434baccfebb1c3f35b4cb74a3283a195e26.tar.zst
dexon-solidity-3076a434baccfebb1c3f35b4cb74a3283a195e26.zip
Merge pull request #3554 from ethereum/reuseScannerOrNot
Expect end of string at end of top-level block for assembly parser.
Diffstat (limited to 'test/libsolidity')
-rw-r--r--test/libsolidity/InlineAssembly.cpp5
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 }"));