diff options
author | Yoichi Hirai <i@yoichihirai.com> | 2017-06-13 22:25:52 +0800 |
---|---|---|
committer | Yoichi Hirai <i@yoichihirai.com> | 2017-06-13 22:57:08 +0800 |
commit | a7241df4b736bb1743048204d901c1bb1a902d0c (patch) | |
tree | 8e8083b8ee0c4f971f7db995fa59e3f0da455d7b /test | |
parent | a0f8c94dadb11b697512af43f119c741aeba7f39 (diff) | |
download | dexon-solidity-a7241df4b736bb1743048204d901c1bb1a902d0c.tar.gz dexon-solidity-a7241df4b736bb1743048204d901c1bb1a902d0c.tar.zst dexon-solidity-a7241df4b736bb1743048204d901c1bb1a902d0c.zip |
Add a failing test as suggested in
https://github.com/ethereum/solidity/pull/2275#discussion_r121438333
Diffstat (limited to 'test')
-rw-r--r-- | test/libsolidity/SolidityNameAndTypeResolution.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/libsolidity/SolidityNameAndTypeResolution.cpp b/test/libsolidity/SolidityNameAndTypeResolution.cpp index 1052d709..438a2b66 100644 --- a/test/libsolidity/SolidityNameAndTypeResolution.cpp +++ b/test/libsolidity/SolidityNameAndTypeResolution.cpp @@ -5793,6 +5793,15 @@ BOOST_AUTO_TEST_CASE(returndatacopy_as_variable) CHECK_WARNING_ALLOW_MULTI(text, "shadowed by an insturction of the same name"); } +BOOST_AUTO_TEST_CASE(shadowing_warning_can_be_removed) +{ + char const* text = R"( + contract C {function f() {assembly {}}} + )"; + CHECK_SUCCESS_NO_WARNINGS(text); +} + + BOOST_AUTO_TEST_SUITE_END() |