diff options
author | Leonardo Alt <leo@ethereum.org> | 2018-11-29 17:05:52 +0800 |
---|---|---|
committer | Leonardo Alt <leo@ethereum.org> | 2018-11-29 21:29:13 +0800 |
commit | 67bbcefe6c104d60b42d35c61d42fb979f69fe89 (patch) | |
tree | 2f0a0f6b33bdabcb8fe70ed9aeb02f46086ee717 /test/libsolidity/syntaxTests/globalFunctions/suicide_override.sol | |
parent | 6b11ef188739302bc9a2a553aee25a172325e0be (diff) | |
download | dexon-solidity-67bbcefe6c104d60b42d35c61d42fb979f69fe89.tar.gz dexon-solidity-67bbcefe6c104d60b42d35c61d42fb979f69fe89.tar.zst dexon-solidity-67bbcefe6c104d60b42d35c61d42fb979f69fe89.zip |
Report deprecation error on functions sha3 and suicide also without call.
Diffstat (limited to 'test/libsolidity/syntaxTests/globalFunctions/suicide_override.sol')
-rw-r--r-- | test/libsolidity/syntaxTests/globalFunctions/suicide_override.sol | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/libsolidity/syntaxTests/globalFunctions/suicide_override.sol b/test/libsolidity/syntaxTests/globalFunctions/suicide_override.sol new file mode 100644 index 00000000..7350da39 --- /dev/null +++ b/test/libsolidity/syntaxTests/globalFunctions/suicide_override.sol @@ -0,0 +1,11 @@ +contract C +{ + function suicide() public pure returns (bool) { + return true; + } + function f() public pure returns (bool) { + return suicide(); + } +} +// ---- +// Warning: (14-79): This declaration shadows a builtin symbol. |