solidity/test/libsolidity/smtCheckerTests/function_selector/selector_2.sol
2021-04-08 21:03:39 +02:00

13 lines
301 B
Solidity

contract C {
function g() external pure {
}
function f() public pure {
assert(msg.sig == this.g.selector);
}
}
// ====
// SMTEngine: all
// ----
// Warning 6328: (92-126): CHC: Assertion violation happens here.\nCounterexample:\n\n\nTransaction trace:\nC.constructor()\nC.f()