diff options
author | chriseth <chris@ethereum.org> | 2017-06-14 22:06:48 +0800 |
---|---|---|
committer | chriseth <chris@ethereum.org> | 2017-06-14 22:06:48 +0800 |
commit | 2b3b00776ed07fda9db9d389f616a2ec00f5aabe (patch) | |
tree | 9216de6075952c27dc5c945fff6686de79faf390 | |
parent | a921bd0ae4afbd6eb55d65beb832546971a65dd4 (diff) | |
download | dexon-solidity-2b3b00776ed07fda9db9d389f616a2ec00f5aabe.tar.gz dexon-solidity-2b3b00776ed07fda9db9d389f616a2ec00f5aabe.tar.zst dexon-solidity-2b3b00776ed07fda9db9d389f616a2ec00f5aabe.zip |
Additional test.
-rw-r--r-- | test/libsolidity/SolidityNameAndTypeResolution.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/libsolidity/SolidityNameAndTypeResolution.cpp b/test/libsolidity/SolidityNameAndTypeResolution.cpp index ba2ade66..017eeaec 100644 --- a/test/libsolidity/SolidityNameAndTypeResolution.cpp +++ b/test/libsolidity/SolidityNameAndTypeResolution.cpp @@ -5793,6 +5793,14 @@ BOOST_AUTO_TEST_CASE(returndatacopy_as_variable) CHECK_WARNING_ALLOW_MULTI(text, "Variable is shadowed in inline assembly by an instruction of the same name"); } +BOOST_AUTO_TEST_CASE(create2_as_variable) +{ + char const* text = R"( + contract c { function f() { uint create2; assembly { create2(0, 0, 0, 0) }}} + )"; + CHECK_WARNING_ALLOW_MULTI(text, "Variable is shadowed in inline assembly by an instruction of the same name"); +} + BOOST_AUTO_TEST_CASE(shadowing_warning_can_be_removed) { char const* text = R"( |