aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity
diff options
context:
space:
mode:
authorchriseth <c@ethdev.com>2016-04-06 22:40:20 +0800
committerchriseth <c@ethdev.com>2016-04-06 22:40:20 +0800
commit193b1c940ce3e21d52e2cbdd253c1d7cb820fa06 (patch)
treea6ac5bb939030e6d4defee1993f3a121b548dd38 /test/libsolidity
parent737623cd0c437bda2707a22ef17a637fbfcd7916 (diff)
parent26a91109a781d583cf632a96561504ae520753c0 (diff)
downloaddexon-solidity-193b1c940ce3e21d52e2cbdd253c1d7cb820fa06.tar.gz
dexon-solidity-193b1c940ce3e21d52e2cbdd253c1d7cb820fa06.tar.zst
dexon-solidity-193b1c940ce3e21d52e2cbdd253c1d7cb820fa06.zip
Merge pull request #475 from chriseth/byteasm
Allow "byte" in inline assembly.
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 153b3fa8..779fc3f8 100644
--- a/test/libsolidity/InlineAssembly.cpp
+++ b/test/libsolidity/InlineAssembly.cpp
@@ -88,6 +88,11 @@ BOOST_AUTO_TEST_CASE(simple_instructions)
BOOST_CHECK(successParse("{ dup1 dup1 mul dup1 sub }"));
}
+BOOST_AUTO_TEST_CASE(keywords)
+{
+ BOOST_CHECK(successParse("{ byte return }"));
+}
+
BOOST_AUTO_TEST_CASE(constants)
{
BOOST_CHECK(successParse("{ 7 8 mul }"));