diff options
author | Alex Beregszaszi <alex@rtfs.hu> | 2016-10-20 19:30:10 +0800 |
---|---|---|
committer | Alex Beregszaszi <alex@rtfs.hu> | 2016-11-15 18:30:33 +0800 |
commit | bee926bf3f2d9f56103547d1add5463ab21c5f8e (patch) | |
tree | 358a8028eaca6ad75ac0aa9cb00d31cfcf7308c6 /test/libsolidity/SolidityEndToEndTest.cpp | |
parent | 91367234d946266b73a5ace8071b0fd931f3a74b (diff) | |
download | dexon-solidity-bee926bf3f2d9f56103547d1add5463ab21c5f8e.tar.gz dexon-solidity-bee926bf3f2d9f56103547d1add5463ab21c5f8e.tar.zst dexon-solidity-bee926bf3f2d9f56103547d1add5463ab21c5f8e.zip |
Add tests for the ErrorTag
Diffstat (limited to 'test/libsolidity/SolidityEndToEndTest.cpp')
-rw-r--r-- | test/libsolidity/SolidityEndToEndTest.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/test/libsolidity/SolidityEndToEndTest.cpp b/test/libsolidity/SolidityEndToEndTest.cpp index 739a2efd..e50c2a85 100644 --- a/test/libsolidity/SolidityEndToEndTest.cpp +++ b/test/libsolidity/SolidityEndToEndTest.cpp @@ -7692,6 +7692,21 @@ BOOST_AUTO_TEST_CASE(packed_storage_overflow) BOOST_CHECK(callContractFunction("f()") == encodeArgs(u256(0x1234), u256(0), u256(0), u256(0xfffe))); } +BOOST_AUTO_TEST_CASE(inline_assembly_errortag) +{ + char const* sourceCode = R"( + contract C { + function f() { + assembly { + jump(ErrorTag) + } + } + } + )"; + compileAndRun(sourceCode, 0, "C"); + BOOST_CHECK(callContractFunction("f()") == encodeArgs()); +} + BOOST_AUTO_TEST_SUITE_END() } |