diff options
author | chriseth <c@ethdev.com> | 2017-01-26 00:24:43 +0800 |
---|---|---|
committer | chriseth <c@ethdev.com> | 2017-01-26 00:24:43 +0800 |
commit | 27ba665694c4a961e098559cb36176aeafd5ec44 (patch) | |
tree | 7828322e631072a216915f4dd938ed53c2cac279 /test/libsolidity/InlineAssembly.cpp | |
parent | 8e318181e9719fda44899a402038013b757a4a60 (diff) | |
download | dexon-solidity-27ba665694c4a961e098559cb36176aeafd5ec44.tar.gz dexon-solidity-27ba665694c4a961e098559cb36176aeafd5ec44.tar.zst dexon-solidity-27ba665694c4a961e098559cb36176aeafd5ec44.zip |
Moved test.
Diffstat (limited to 'test/libsolidity/InlineAssembly.cpp')
-rw-r--r-- | test/libsolidity/InlineAssembly.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/libsolidity/InlineAssembly.cpp b/test/libsolidity/InlineAssembly.cpp index 64073edc..c2dac287 100644 --- a/test/libsolidity/InlineAssembly.cpp +++ b/test/libsolidity/InlineAssembly.cpp @@ -182,6 +182,12 @@ BOOST_AUTO_TEST_CASE(error_tag) BOOST_CHECK(successAssemble("{ invalidJumpLabel }")); } +BOOST_AUTO_TEST_CASE(inline_assembly_shadowed_instruction) +{ + // Error message: "Cannot use instruction names for identifier names." + BOOST_CHECK(!successAssemble("{ let gas := 1 }")); +} + BOOST_AUTO_TEST_SUITE_END() } |