solidity/test/libsolidity/smtCheckerTests/function_selector/selector_3.sol

15 lines
302 B
Solidity
Raw Normal View History

pragma experimental SMTChecker;
contract C {
int public x;
int public y;
function f() public pure {
assert(this.x.selector != this.y.selector);
assert(this.x.selector == this.y.selector);
}
}
// ----
// Warning 6328: (175-217): CHC: Assertion violation happens here.