diff options
author | chriseth <chris@ethereum.org> | 2017-05-02 21:48:58 +0800 |
---|---|---|
committer | chriseth <chris@ethereum.org> | 2017-05-02 21:48:58 +0800 |
commit | 96870686a9aba46a14d659c8c1cd107a9071857f (patch) | |
tree | ef970811af1dc816d7003c2f78500f8cc482260f /test | |
parent | e544698ad3a2101e3d910d0761571d4fa20144e8 (diff) | |
download | dexon-solidity-96870686a9aba46a14d659c8c1cd107a9071857f.tar.gz dexon-solidity-96870686a9aba46a14d659c8c1cd107a9071857f.tar.zst dexon-solidity-96870686a9aba46a14d659c8c1cd107a9071857f.zip |
Style and stricter tests.
Diffstat (limited to 'test')
-rw-r--r-- | test/libsolidity/SolidityNameAndTypeResolution.cpp | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/test/libsolidity/SolidityNameAndTypeResolution.cpp b/test/libsolidity/SolidityNameAndTypeResolution.cpp index 8e80e006..90d0e728 100644 --- a/test/libsolidity/SolidityNameAndTypeResolution.cpp +++ b/test/libsolidity/SolidityNameAndTypeResolution.cpp @@ -3943,7 +3943,7 @@ BOOST_AUTO_TEST_CASE(rational_unary_operation) } } )"; - CHECK_SUCCESS(text); + CHECK_SUCCESS_NO_WARNINGS(text); text = R"( contract test { function f() { @@ -3953,6 +3953,14 @@ BOOST_AUTO_TEST_CASE(rational_unary_operation) } )"; CHECK_WARNING(text,"Use of unary + is deprecated"); + text = R"( + contract test { + function f(uint x) { + uint y = +x; + } + } + )"; + CHECK_WARNING(text,"Use of unary + is deprecated"); } BOOST_AUTO_TEST_CASE(leading_zero_rationals_convert) |