From 1a9a3b115c970daa24d455271a201a674d6bbea1 Mon Sep 17 00:00:00 2001 From: Christian Parpart Date: Wed, 21 Oct 2020 13:50:14 +0200 Subject: [PATCH] Moving the `surplus_input` inline assembly test to yulSyntaxTests. --- test/libsolidity/InlineAssembly.cpp | 10 ---------- test/libyul/yulSyntaxTests/surplus_input.yul | 4 ++++ 2 files changed, 4 insertions(+), 10 deletions(-) create mode 100644 test/libyul/yulSyntaxTests/surplus_input.yul diff --git a/test/libsolidity/InlineAssembly.cpp b/test/libsolidity/InlineAssembly.cpp index 33f3be9a0..d6f7becf0 100644 --- a/test/libsolidity/InlineAssembly.cpp +++ b/test/libsolidity/InlineAssembly.cpp @@ -170,16 +170,6 @@ do { successParse((text), false, false, AssemblyStack::Language::StrictAssembly) BOOST_AUTO_TEST_SUITE(SolidityInlineAssembly) - -BOOST_AUTO_TEST_SUITE(Parsing) // {{{ - -BOOST_AUTO_TEST_CASE(surplus_input) -{ - CHECK_PARSE_ERROR("{ } { }", ParserError, "Expected end of source but got '{'"); -} - -BOOST_AUTO_TEST_SUITE_END() // }}} - BOOST_AUTO_TEST_SUITE(Printing) // {{{ BOOST_AUTO_TEST_CASE(print_smoke) diff --git a/test/libyul/yulSyntaxTests/surplus_input.yul b/test/libyul/yulSyntaxTests/surplus_input.yul new file mode 100644 index 000000000..3db8feec9 --- /dev/null +++ b/test/libyul/yulSyntaxTests/surplus_input.yul @@ -0,0 +1,4 @@ +{} +{} +// ---- +// ParserError 2314: (3-4): Expected end of source but got '{'