aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/InlineAssembly.cpp
diff options
context:
space:
mode:
authorchriseth <c@ethdev.com>2016-04-05 20:57:40 +0800
committerchriseth <c@ethdev.com>2016-04-06 18:31:31 +0800
commit26a91109a781d583cf632a96561504ae520753c0 (patch)
treeabfbb12a13b11ea75477de3b506c6263ecdf0661 /test/libsolidity/InlineAssembly.cpp
parent12797ed6c9afacd7f5a2b8538ccf0032bbc15a19 (diff)
downloaddexon-solidity-26a91109a781d583cf632a96561504ae520753c0.tar.gz
dexon-solidity-26a91109a781d583cf632a96561504ae520753c0.tar.zst
dexon-solidity-26a91109a781d583cf632a96561504ae520753c0.zip
Allow "byte" in 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 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 }"));