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

13 lines
309 B
Solidity
Raw Normal View History

pragma experimental SMTChecker;
contract C {
function g() external pure {
}
function f() public pure {
assert(msg.sig == this.g.selector);
}
}
// ----
2021-01-06 15:06:15 +00:00
// Warning 6328: (125-159): CHC: Assertion violation happens here.\nCounterexample:\n\n\nTransaction trace:\nC.constructor()\nC.f()