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

13 lines
324 B
Solidity
Raw Normal View History

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