diff options
author | Alex Beregszaszi <alex@rtfs.hu> | 2017-06-15 04:03:32 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-06-15 04:03:32 +0800 |
commit | 42b61171d981ceccd5f79af5508db92b4f2ad54b (patch) | |
tree | 8ab6ee34bb8f15fa40e2509a8eda06f3d867d761 /test | |
parent | f008ddf83646f6002a61a123cc94ad195a35dce4 (diff) | |
parent | c20cdd0a0574c350b5cde7b38e87321479cecab3 (diff) | |
download | dexon-solidity-42b61171d981ceccd5f79af5508db92b4f2ad54b.tar dexon-solidity-42b61171d981ceccd5f79af5508db92b4f2ad54b.tar.gz dexon-solidity-42b61171d981ceccd5f79af5508db92b4f2ad54b.tar.bz2 dexon-solidity-42b61171d981ceccd5f79af5508db92b4f2ad54b.tar.lz dexon-solidity-42b61171d981ceccd5f79af5508db92b4f2ad54b.tar.xz dexon-solidity-42b61171d981ceccd5f79af5508db92b4f2ad54b.tar.zst dexon-solidity-42b61171d981ceccd5f79af5508db92b4f2ad54b.zip |
Merge pull request #2192 from winsvega/develop
add STATICCALL instruction
Diffstat (limited to 'test')
-rw-r--r-- | test/libsolidity/InlineAssembly.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/libsolidity/InlineAssembly.cpp b/test/libsolidity/InlineAssembly.cpp index 7876b7ee..aae6dacd 100644 --- a/test/libsolidity/InlineAssembly.cpp +++ b/test/libsolidity/InlineAssembly.cpp @@ -572,6 +572,16 @@ BOOST_AUTO_TEST_CASE(returndatacopy_functional) BOOST_CHECK(successAssemble("{ returndatacopy(0, 32, 64) }")); } +BOOST_AUTO_TEST_CASE(staticcall) +{ + BOOST_CHECK(successAssemble("{ pop(staticcall(10000, 0x123, 64, 0x10, 128, 0x10)) }")); +} + +BOOST_AUTO_TEST_CASE(create2) +{ + BOOST_CHECK(successAssemble("{ pop(create2(10, 0x123, 32, 64)) }")); +} + BOOST_AUTO_TEST_SUITE_END() BOOST_AUTO_TEST_SUITE_END() |