aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorchriseth <chris@ethereum.org>2017-07-06 01:45:12 +0800
committerchriseth <chris@ethereum.org>2017-07-06 03:15:00 +0800
commit0400e61e284bd595384d859752d97993b1f5ca45 (patch)
tree81d1fbebb3b698fb49970e63a8c04029fc10d56a /test
parent4bde6fa96122a308296e00dfb32da25905c5ef34 (diff)
downloaddexon-solidity-0400e61e284bd595384d859752d97993b1f5ca45.tar.gz
dexon-solidity-0400e61e284bd595384d859752d97993b1f5ca45.tar.zst
dexon-solidity-0400e61e284bd595384d859752d97993b1f5ca45.zip
Deprecate throw.
Diffstat (limited to 'test')
-rw-r--r--test/libsolidity/SolidityNameAndTypeResolution.cpp12
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"(