solidity/test/libsolidity/smtCheckerTests/special/msg_value_2.sol
2021-01-21 19:05:44 +01:00

9 lines
244 B
Solidity

pragma experimental SMTChecker;
contract C {
function f() public payable {
assert(msg.value > 0);
}
}
// ----
// Warning 6328: (78-99): CHC: Assertion violation happens here.\nCounterexample:\n\n\nTransaction trace:\nC.constructor()\nC.f()