diff options
Diffstat (limited to 'test/libsolidity/ViewPureChecker.cpp')
-rw-r--r-- | test/libsolidity/ViewPureChecker.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/libsolidity/ViewPureChecker.cpp b/test/libsolidity/ViewPureChecker.cpp index 0fee95c5..3a03c877 100644 --- a/test/libsolidity/ViewPureChecker.cpp +++ b/test/libsolidity/ViewPureChecker.cpp @@ -330,10 +330,11 @@ BOOST_AUTO_TEST_CASE(selector) { string text = R"( contract C { + uint public x; function f() payable public { } function g() pure public returns (bytes4) { - return this.f.selector; + return this.f.selector ^ this.x.selector; } } )"; |