aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorAlex Beregszaszi <alex@rtfs.hu>2016-10-05 19:00:36 +0800
committerAlex Beregszaszi <alex@rtfs.hu>2016-10-06 19:44:33 +0800
commitc7508942feb5c2169f0d463cf4982b580710caf0 (patch)
treefa0096c3d1a185858c7bb210e6bdd7ed4b23c29f /test
parent6afdee5958624a41fcb8f136d1a18f1d8dd816bb (diff)
downloaddexon-solidity-c7508942feb5c2169f0d463cf4982b580710caf0.tar.gz
dexon-solidity-c7508942feb5c2169f0d463cf4982b580710caf0.tar.zst
dexon-solidity-c7508942feb5c2169f0d463cf4982b580710caf0.zip
Add test for suicide/selfdestruct
Diffstat (limited to 'test')
-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 8d1a1d6c..9e96246d 100644
--- a/test/libsolidity/InlineAssembly.cpp
+++ b/test/libsolidity/InlineAssembly.cpp
@@ -87,6 +87,11 @@ BOOST_AUTO_TEST_CASE(simple_instructions)
BOOST_CHECK(successParse("{ dup1 dup1 mul dup1 sub }"));
}
+BOOST_AUTO_TEST_CASE(suicide_selfdestruct)
+{
+ BOOST_CHECK(successParse("{ suicide selfdestruct }"));
+}
+
BOOST_AUTO_TEST_CASE(keywords)
{
BOOST_CHECK(successParse("{ byte return }"));