aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorchriseth <chris@ethereum.org>2017-05-02 21:48:58 +0800
committerchriseth <chris@ethereum.org>2017-05-02 21:48:58 +0800
commit96870686a9aba46a14d659c8c1cd107a9071857f (patch)
treeef970811af1dc816d7003c2f78500f8cc482260f /test
parente544698ad3a2101e3d910d0761571d4fa20144e8 (diff)
downloaddexon-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.cpp10
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)