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

9 lines
137 B
Solidity

pragma experimental SMTChecker;
contract C {
function f() public pure {
assert(msg.sig == this.f.selector);
}
}
// ----