diff options
author | Daniel Kirchner <daniel@ekpyron.org> | 2018-07-04 17:25:45 +0800 |
---|---|---|
committer | Daniel Kirchner <daniel@ekpyron.org> | 2018-07-04 17:25:45 +0800 |
commit | f5be38bff10b02ab5b7bc1125daa6fbe17f87b65 (patch) | |
tree | 8ba9eef13c0d4331155021b1d3f477520f5af6c2 /test/libsolidity/syntaxTests/viewPureChecker/selector.sol | |
parent | d9a8f2aaceb077d5a3ef0bb2971d747b894aee7f (diff) | |
download | dexon-solidity-f5be38bff10b02ab5b7bc1125daa6fbe17f87b65.tar dexon-solidity-f5be38bff10b02ab5b7bc1125daa6fbe17f87b65.tar.gz dexon-solidity-f5be38bff10b02ab5b7bc1125daa6fbe17f87b65.tar.bz2 dexon-solidity-f5be38bff10b02ab5b7bc1125daa6fbe17f87b65.tar.lz dexon-solidity-f5be38bff10b02ab5b7bc1125daa6fbe17f87b65.tar.xz dexon-solidity-f5be38bff10b02ab5b7bc1125daa6fbe17f87b65.tar.zst dexon-solidity-f5be38bff10b02ab5b7bc1125daa6fbe17f87b65.zip |
Extend view pure test suite.
Diffstat (limited to 'test/libsolidity/syntaxTests/viewPureChecker/selector.sol')
-rw-r--r-- | test/libsolidity/syntaxTests/viewPureChecker/selector.sol | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/libsolidity/syntaxTests/viewPureChecker/selector.sol b/test/libsolidity/syntaxTests/viewPureChecker/selector.sol index 2ad4518d..c4e30075 100644 --- a/test/libsolidity/syntaxTests/viewPureChecker/selector.sol +++ b/test/libsolidity/syntaxTests/viewPureChecker/selector.sol @@ -5,4 +5,8 @@ contract C { function g() pure public returns (bytes4) { return this.f.selector ^ this.x.selector; } + function h() view public returns (bytes4) { + x; + return this.f.selector ^ this.x.selector; + } } |