aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/syntaxTests/viewPureChecker/selector.sol
diff options
context:
space:
mode:
authorDaniel Kirchner <daniel@ekpyron.org>2018-07-04 17:25:45 +0800
committerDaniel Kirchner <daniel@ekpyron.org>2018-07-04 17:25:45 +0800
commitf5be38bff10b02ab5b7bc1125daa6fbe17f87b65 (patch)
tree8ba9eef13c0d4331155021b1d3f477520f5af6c2 /test/libsolidity/syntaxTests/viewPureChecker/selector.sol
parentd9a8f2aaceb077d5a3ef0bb2971d747b894aee7f (diff)
downloaddexon-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.sol4
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;
+ }
}