diff options
author | Alex Beregszaszi <alex@rtfs.hu> | 2017-07-06 04:24:45 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-07-06 04:24:45 +0800 |
commit | eca2655cae7d6fcefdb53630f96768acdaf937a4 (patch) | |
tree | 81d1fbebb3b698fb49970e63a8c04029fc10d56a /test | |
parent | 4bde6fa96122a308296e00dfb32da25905c5ef34 (diff) | |
parent | 0400e61e284bd595384d859752d97993b1f5ca45 (diff) | |
download | dexon-solidity-eca2655cae7d6fcefdb53630f96768acdaf937a4.tar dexon-solidity-eca2655cae7d6fcefdb53630f96768acdaf937a4.tar.gz dexon-solidity-eca2655cae7d6fcefdb53630f96768acdaf937a4.tar.bz2 dexon-solidity-eca2655cae7d6fcefdb53630f96768acdaf937a4.tar.lz dexon-solidity-eca2655cae7d6fcefdb53630f96768acdaf937a4.tar.xz dexon-solidity-eca2655cae7d6fcefdb53630f96768acdaf937a4.tar.zst dexon-solidity-eca2655cae7d6fcefdb53630f96768acdaf937a4.zip |
Merge pull request #2529 from ethereum/warnThrow
Deprecate throw.
Diffstat (limited to 'test')
-rw-r--r-- | test/libsolidity/SolidityNameAndTypeResolution.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/libsolidity/SolidityNameAndTypeResolution.cpp b/test/libsolidity/SolidityNameAndTypeResolution.cpp index e04d50e8..108128f7 100644 --- a/test/libsolidity/SolidityNameAndTypeResolution.cpp +++ b/test/libsolidity/SolidityNameAndTypeResolution.cpp @@ -5860,6 +5860,18 @@ BOOST_AUTO_TEST_CASE(using_interface_complex) success(text); } +BOOST_AUTO_TEST_CASE(warn_about_throw) +{ + char const* text = R"( + contract C { + function f() { + throw; + } + } + )"; + CHECK_WARNING(text, "\"throw\" is deprecated"); +} + BOOST_AUTO_TEST_CASE(bare_revert) { char const* text = R"( |