aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYoichi Hirai <i@yoichihirai.com>2017-05-29 20:46:42 +0800
committerYoichi Hirai <i@yoichihirai.com>2017-06-13 22:57:08 +0800
commit464dea24597135cbb44ffa24d19dd184315d9085 (patch)
tree08f6371cf817b5ec87d08e6a12f2fdd0dbce3093
parent05af6c92556acac917983b1a8e0e9e62d28de573 (diff)
downloaddexon-solidity-464dea24597135cbb44ffa24d19dd184315d9085.tar
dexon-solidity-464dea24597135cbb44ffa24d19dd184315d9085.tar.gz
dexon-solidity-464dea24597135cbb44ffa24d19dd184315d9085.tar.bz2
dexon-solidity-464dea24597135cbb44ffa24d19dd184315d9085.tar.lz
dexon-solidity-464dea24597135cbb44ffa24d19dd184315d9085.tar.xz
dexon-solidity-464dea24597135cbb44ffa24d19dd184315d9085.tar.zst
dexon-solidity-464dea24597135cbb44ffa24d19dd184315d9085.zip
test: Add different styles of returndatacopy and returndatasize
-rw-r--r--test/libsolidity/InlineAssembly.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/libsolidity/InlineAssembly.cpp b/test/libsolidity/InlineAssembly.cpp
index 2f9e1ced..435c3dad 100644
--- a/test/libsolidity/InlineAssembly.cpp
+++ b/test/libsolidity/InlineAssembly.cpp
@@ -547,8 +547,18 @@ BOOST_AUTO_TEST_CASE(returndatasize)
BOOST_CHECK(successAssemble("{ let r := returndatasize }"));
}
+BOOST_AUTO_TEST_CASE(returndatasize_functional)
+{
+ BOOST_CHECK(successAssemble("{ let r := returndatasize() }"));
+}
+
BOOST_AUTO_TEST_CASE(returndatacopy)
{
+ BOOST_CHECK(successAssemble("{ 64 32 0 returndatacopy }"));
+}
+
+BOOST_AUTO_TEST_CASE(returndatacopy_functional)
+{
BOOST_CHECK(successAssemble("{ returndatacopy(0, 32, 64) }"));
}