aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/InlineAssembly.cpp
diff options
context:
space:
mode:
authorchriseth <chris@ethereum.org>2017-01-30 21:18:16 +0800
committerGitHub <noreply@github.com>2017-01-30 21:18:16 +0800
commitedd3696dc1efa87bd0f62e02637874e1a0f43dad (patch)
tree5ce364bcff797079e9d27a265066ce11e3978f65 /test/libsolidity/InlineAssembly.cpp
parentb2c35fb41a65dc996189b890f292103d9318b53e (diff)
parenteb530aa217387092a84057b550c7665a4acf72b6 (diff)
downloaddexon-solidity-edd3696dc1efa87bd0f62e02637874e1a0f43dad.tar.gz
dexon-solidity-edd3696dc1efa87bd0f62e02637874e1a0f43dad.tar.zst
dexon-solidity-edd3696dc1efa87bd0f62e02637874e1a0f43dad.zip
Merge pull request #1619 from ethereum/changelog
Mention in changelog that invalid as an opcode is valid inline assembly
Diffstat (limited to 'test/libsolidity/InlineAssembly.cpp')
-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 c051a982..cf0343a9 100644
--- a/test/libsolidity/InlineAssembly.cpp
+++ b/test/libsolidity/InlineAssembly.cpp
@@ -182,6 +182,11 @@ BOOST_AUTO_TEST_CASE(error_tag)
BOOST_CHECK(successAssemble("{ invalidJumpLabel }"));
}
+BOOST_AUTO_TEST_CASE(designated_invalid_instruction)
+{
+ BOOST_CHECK(successAssemble("{ invalid }"));
+}
+
BOOST_AUTO_TEST_CASE(inline_assembly_shadowed_instruction_declaration)
{
// Error message: "Cannot use instruction names for identifier names."